XML 1.0 和 XML 2.0 之间的区别 [英] Difference between XML 1.0 and XML 2.0

查看:76
本文介绍了XML 1.0 和 XML 2.0 之间的区别的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

XML 1.0 和 XML 2.0 有什么区别?

What is the difference between XML 1.0 and XML 2.0?

推荐答案

从来没有 XML 2.0,即使是草稿.

There has never been an XML 2.0, even as a draft.

有一个并不完全流行的 XML 1.1 标准,它有三个主要变化,其中最重要的变化在 XML 1.0 第 5 版中就地应用到 XML 1.0 中引起了一些争议.

There is a not entirely popular XML 1.1 standard which has three main changes, the most important of which was somewhat controversially applied in-place to XML 1.0 in XML 1.0 5th edition.

它更改了允许的元素和属性名称集(本质上 XML 1.0 有一组固定的名称,名称中不允许添加到 Unicode 的新字符;XML 1.1 将其更改为开放集,以便所有当前未分配的代码点用于名称).此更改适用于 XML 1.0 第 5 版以及 XML 1.1.

It changes the set of allowed element and attribute names (essentially XML 1.0 had a fixed set of names and new characters added to Unicode were not allowed in names; XML 1.1 changed that to an open set such that all currently unallocated code points to be used in names). This change applies to XML 1.0 5th edition as well as XML 1.1.

XML 1.1 更改了将 IBM NEL 终止符 U+2028 视为行尾字符的空白字符.它改变了围绕控制字符的规则,允许它们(除了代码点 0)被编码为数字字符引用的 XML,所以  是合法的 XML 1.1 但不是 XML 1.0.

XML 1.1 changed the white space characters treating the IBM NEL terminator U+2028 as an end of line character. It changed the rules around control characters allowing them (apart from code point 0) into XML encoded as numeric character references, so  is legal XML 1.1 but not XML 1.0.

这篇关于XML 1.0 和 XML 2.0 之间的区别的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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