我应该学习 XML 1.0 还是 XML 1.1?

发布于 2024-11-13 12:15:09 字数 207 浏览 4 评论 0原文

我知道格式良好的 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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(4

猫腻 2024-11-20 12:15:09

除非您有使用 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
概括:

您需要了解的有关 XML 1.1 的所有内容都可以总结为两条规则:

  1. 不要使用它。
  2. (仅限专家)如果您讲蒙古语、彝语、柬埔寨语、阿姆哈拉语、迪维希语、缅甸语或极少数其他语言,并且您想用这些语言编写标记(不是您的文本,而是您的标记),那么您可以将 XML 声明的版本属性设置为 1.1。否则,请参阅规则 1。

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:

Everything you need to know about XML 1.1 can be summed up in two rules:

  1. Don't use it.
  2. (For experts only) If you speak Mongolian, Yi, Cambodian, Amharic, Dhivehi, Burmese or a very few other languages and you want to write your markup (not your text but your markup) in these languages, then you can set the version attribute of the XML declaration to 1.1. Otherwise, refer to rule 1.
心不设防 2024-11-20 12:15:09

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

丑丑阿 2024-11-20 12:15:09

它们之间的差异非常小。如果您对这种详细程度感兴趣,则需要阅读这两篇文章。如果您对这种详细程度不感兴趣,您可以阅读其中任何一本书。

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.

短暂陪伴 2024-11-20 12:15:09

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.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文