我应该学习 XML 1.0 还是 XML 1.1?
我知道格式良好的 XML 1.1 不一定是格式良好的 XML 1.0,反之亦然。
我想正式学习 xml,我想知道我应该学习 XML 1.0 还是 XML 1.1?我的意思是学习 XML 1.0 更有效还是学习 XML 1.1 更有效?
我的意思是,我当然知道最好把它们都读一遍..但我真的只有时间读其中一本,所以哪一个会“更好”(对我来说更有用,就像普通程序员一样)?
I know that a well-formed XML 1.1 is not necessarily a well-formed XML 1.0 and vice-versa.
I want to learn xml formally and i was wondering whether i should learn XML 1.0 or XML 1.1? I mean would it be more effective to learn XML 1.0 or would it be more effective to learn XML 1.1?
I mean of course I know its best to read them both.. but i really only have the time to read one of them, so which would be "better" (more useful to me, me as in the average programmer)?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(4)
除非您有使用 XML 1.1 的特定要求(这种情况非常罕见),否则您应该阅读 XML 1.0 建议书。
Tim Bray,该规范的原始编辑之一,创建了一个出色的带注释版本,您可以在 http://www.xml.com/axml/axml.html 找到
多一点有关 XML 1.1 的信息/意见,请查看 Elliotte Rusty Harold 在这里所说的内容:
http://www.ibiblio.org/xml/books/ effectivexml/chapters /03.html
概括:
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
Summary:
XML 1.0 于 1998 年首次定义,并经历了多次(较小的)修订,但从未给出新的版本号。最新一期于 2008 年发布,为第五版。 “它已被广泛实施,并且仍然建议普遍使用。”
XML 1.1 于 2004 年推出,目前是 2006 年发布的第二版。
“XML 1.1 尚未得到广泛实施,建议仅由那些需要其独特功能的人使用。”
有关更多详细信息,请参阅:
http://en.wikipedia.org/wiki/XML#Versions
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 是行业标准,我没有看到任何XML 1.1 文档尚未或任何用例,因此恕我直言,最好从 W3C XML 1.0 推荐中学习。
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.