It is said abt XML that it is open standard and there is nothing like versioning of XML (unlike HTML 3.2 HTML 4.0 etc.). So why do we write <?xml version="1.0"?> at the beginning of every XML doc? Thanks in advance for the reply, N
The declaration part in XML is actually optional. But it's a good idea to include it whenever you create an XML file. The declaration should have the version number, at a minimum, and ideally the encoding as well. That standard simplifies things if the XML standard is extended in the future, and if the data ever needs to be localized for different geographical regions.
Not to forget, some parsers actually use the version tag to check the compatibility even before looking at the other elements. ------------------ Ajith Kallambella M. Sun Certified Programmer for the Java�2 Platform. IBM Certified Developer - XML and Related Technologies, V1.
Open Group Certified Distinguished IT Architect. Open Group Certified Master IT Architect. Sun Certified Architect (SCEA).
Joined: Feb 06, 2001
Ajith, According to you some parsers use version tag to check compatibilty. In case the parser doesn't finds the version tag, will it give an error?
I’ve looked at a lot of different solutions, and in my humble opinion Aspose is the way to go. Here’s the link: http://aspose.com