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

标签 xml standards standards-compliance xml-1.1

我知道格式正确的 XML 1.1 不一定是格式正确的 XML 1.0,反之亦然。

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

我的意思是我当然知道最好同时阅读它们..但我真的只有时间阅读其中一个,所以哪个会“更好”(对我来说更有用,我作为普通程序员) ?

最佳答案

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

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
摘要:

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.

关于xml - 我应该学习 XML 1.0 还是 XML 1.1?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/6260975/

相关文章:

java - bean实例化失败;嵌套异常是 org.springframework.beans.BeanInstantiationException : Could not instantiate bean class

c# - 将 XElement 的子元素转换为字符串

php - 以下划线为前缀的 protected 属性

sql - 字母数字和特殊字符排序

java - 使用 JAXB 解码具有不同/动态名称的元素

ios - 从 XML 文件 iOS 中消除重复的配置文件

c++ - C 结构定义标准

c++ - 析构函数可以递归吗?

c++ - C++ 标准库必须用 C++ 实现吗?

c++ - void(*)() 模拟成员函数指针往返转换