bepsmi 0 Posted April 25, 2013 Report Share Posted April 25, 2013 I have the following questions I can't answer by myself: What is the version of XML one should use? 1.0 or 1.1? Wierdly, 1.0 seems to be more updated and more used than 1.1... how is this possible? Is the prolog <?xml version="1.0"> necessary in an XML document? If not, is there a default version (1.0 or whatever) that the processor assumes when the prolog is not present? Quote Link to post Share on other sites
Ingolme 1,020 Posted April 25, 2013 Report Share Posted April 25, 2013 There's no such thing as XML 1.1. There's XHTML 1.1 which isn't really used much anymore. The XML declration is required in an XML document. It can also include the character set that the document uses. It need both an opening <? and closing ?> <?xml version="1.0" encoding="UTF-8" ?> Quote Link to post Share on other sites
bepsmi 0 Posted April 26, 2013 Author Report Share Posted April 26, 2013 XML 1.1 can be found here (http://www.w3.org/TR/xml11/) I have read on many books that XML prolog can also be left out. In this case, I do not know what the default XML version (1.0 or 1.1) is. Quote Link to post Share on other sites
boen_robot 107 Posted April 27, 2013 Report Share Posted April 27, 2013 The default is the highest supported by the XML parser.The main difference between 1.0 and 1.1 is in what's allowed as tag names - XML 1.0 only allowes a certain (very large!!!) range of printable characters, while XML 1.1 only forbids a certain (very small) range of characters that are either already special (e.g. "<" and ">") or are reserved for potential future expansions (e.g. "{" and "}").There's almost no other difference, which is why you don't see many users use it, and in turn, fewer parsers for it. Quote Link to post Share on other sites
lovewebdesign 0 Posted December 5, 2013 Report Share Posted December 5, 2013 Use version 1.0.You would only need to use version 1.1 if you are using certain non-ASCII characters in identifiers, EBCDIC line ending characters, or control characters (character codes 1 - 31). Quote Link to post Share on other sites
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.