我应该学习 XML 1.0 还是 XML 1.1? [英] Should I learn XML 1.0 or XML 1.1?

查看:31
本文介绍了我应该学习 XML 1.0 还是 XML 1.1?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我知道格式良好的 XML 1.1 不一定是格式良好的 XML 1.0,反之亦然.

I know that a well-formed XML 1.1 is not necessarily a well-formed XML 1.0 and vice-versa.

我想正式学习 xml,我想知道我应该学习 XML 1.0 还是 XML 1.1?我的意思是学习 XML 1.0 会更有效还是学习 XML 1.1 会更有效?

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)?

推荐答案

除非您有使用 XML 1.1 的特定要求(这种情况非常罕见),否则您应该阅读 XML 1.0 Recommendation.

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,规范的原始编辑之一,创建了一个出色的注释您可以在 http://www.xml.com/axml/axml 上找到它的版本.html

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

有关 XML 1.1 的更多信息/意见,请查看 Elliotte Rusty Harold 在这里所说的话:http://www.ibiblio.org/xml/books/effectivexml/章节/03.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.1 的一切都可以归结为两条规则:

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

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

这篇关于我应该学习 XML 1.0 还是 XML 1.1?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆