Should I learn XML 1.0 or XML 1.1?

回眸只為那壹抹淺笑 提交于 2019-11-30 03:02:57
alexbrn

Unless you have a specific requirement to work with XML 1.1 (which is very rare), you should read the XML 1.0 Recommendation.

Tim Bray, one of the original editors of the specification, has created an excellent annotated version of it which you can find at:

http://www.xml.com/axml/axml.html

For a bit more info/opinion on XML 1.1, check out what Elliotte Rusty Harold has to say here:

http://www.ibiblio.org/xml/books/effectivexml/chapters/03.html

Which is more useful to the average programmer? Neither. The recommendation documents are incredibly dense and difficult to read, in my opinion.

XML is fundamentally pretty simple*, but the documentation makes it look extremely complex. Unless you actually want to implement your own XML stack then skip the recommendation documents and just read the Wikipedia entry, or find a tutorial somewhere that covers the basics.

*Until you start looking at all the extensions. WS-SEC? Ugh.

XML 1.0 was first defined in 1998 and went through several (minor) revisions, but was never given a new version number. The latest one came out in 2008, as the 5th edition. "It is widely implemented and still recommended for general use."

XML 1.1 was introduced in 2004 and is currently in its 2nd edition published in 2006. "XML 1.1 is not very widely implemented and is recommended for use only by those who need its unique features."

For more details, see: http://en.wikipedia.org/wiki/XML#Versions

The differences between them are very minor. If you are interested in that level of detail, you need to read both. If you aren't interested in that level of detail, you can read either.

XML 1.0 is the industry standard and I didn't see any XML 1.1 document yet or any use case, so IMHO much better to learn from W3C XML 1.0 recommendation.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!