none
purpose of <?xml version="1.0" encoding="utf-8"?>

    Question

  • Dear experts,

    i want to know what is the purpose of 

     <?xml version="1.0" encoding="utf-8"?>

    this line in an XML file

    actually as per Indian Government Excise Departments XSD file for uploading the Sales Transactions Details if I include above line

    the file submission fails and if I remove it  gets accepted  


    Thursday, January 09, 2014 5:00 AM

All replies

  • <?xml version="1.0"encoding="utf-8"?>


    This line (the XML declaration) is required if the XML Document is to be well formed.


    It's purpose is therefore to create a well formed document.


    It must be the first line in any XML Document.


    Friday, January 10, 2014 6:25 PM