It expands entities and ignores processing instructions and comments.
可以扩充实体并忽略处理指示和注解。
Processing instructions and comments are also reduced to special tag names that are not available in XML: PI for the former, comment for the latter.
处理指令和注释也简化了标签名,这在XML中是无法实现的:前者用PI,后者用COMMENT。
The RFC moves on to coverage of content constructs with sections 4.5 and 4.6, which offer very sensible advice on when to use processing instructions and comments.
RFC在4.5和4.6节讨论内容结构,就何时使用处理指令和注释提供了非常合理的建议。
A node can contain text, attributes, other nodes (hence, the hierarchical nature of XML), and a few other specialized things (such as processing instructions and comments).
节点可以包含文本、属性、其他节点(因此形成XML的层次结构)以及其他一些特殊的东西(比如处理指令和注释)。
Even with this improvement, your code can still trip on comments, processing instructions, and CDATA sections.
即使这样改进之后,代码还是会在注释、处理指令和cdata节上出错。
For instance, text nodes, CDATA sections, comments, processing instructions, attributes, whitespace, document types, and XML declarations have values.
例如,文本节点、CDATA部件、注释、处理指令、属性、空格、文档类型和XML声明具有值。
Notice that some of the discussion will also be pertinent to cases where you have text, comments, and processing instructions as siblings of elements, but this discussion focuses solely on elements.
注意,有些讨论也与把文本、注释和处理指令当作兄弟元素的情形有关,但是本文仅讨论元素。
It might contain several, as well as comments and processing instructions. For instance, it could look like this.
可能包含多个文本节点,以及注释和处理指令。
Methods writeEntityRef, writeProcessingInstruction, and writeComment can write entity references, processing instructions, and comments, respectively.
writeProcessingInstruction和writeComment方法可以分别编写实体引用、过程说明和注释。
Comments and processing instructions are skipped and entity references are automatically resolved.
将跳过注释和处理指令并自动对实体引用进行解析。
However, the character entity reference is not allowed in element and attribute names, comments, processing instructions, or CDATA sections.
不过,在项目与属性名称、注解、处理指示或cdata区段中不允许字元实体参考。
The element can contain text, white space, significant white space, CDATA sections, comments and processing instructions.
该元素可包含文本、空白、有效空白、cdata节、注释和处理指令。
It stops when any markup is encountered, including comments and processing instructions.
当遇到任何标记(包括注释和处理指令)时,它就会停止。
It stops when any markup is encountered, including comments and processing instructions.
当遇到任何标记(包括注释和处理指令)时,它就会停止。
应用推荐