处理指令和注释也简化了标签名,这在XML中是无法实现的:前者用PI,后者用COMMENT。
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.
RFC在4.5和4.6节讨论内容结构,就何时使用处理指令和注释提供了非常合理的建议。
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.
节点可以包含文本、属性、其他节点(因此形成XML的层次结构)以及其他一些特殊的东西(比如处理指令和注释)。
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).
即使这样改进之后,代码还是会在注释、处理指令和cdata节上出错。
Even with this improvement, your code can still trip on comments, processing instructions, and CDATA sections.
例如,文本节点、CDATA部件、注释、处理指令、属性、空格、文档类型和XML声明具有值。
For instance, text nodes, CDATA sections, comments, processing instructions, attributes, whitespace, document types, and XML declarations have values.
每个CDATA部分、注释、处理指令和非叶节点都被分配一个二进制代码字。
Each CDATA section, comment, processing instruction, and non-leaf node is assigned a binary codeword.
注意,有些讨论也与把文本、注释和处理指令当作兄弟元素的情形有关,但是本文仅讨论元素。
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.
例如,图3显示Jaxen需要进行一些测试,运用name函数对文字节点、注释节点、处理指令节点、属性节点和名称空间节点进行测试。
For example, Figure 3 shows that Jaxen needs tests that apply the name function to text nodes, comment nodes, processing instruction nodes, attribute nodes, and namespace nodes.
可能包含多个文本节点,以及注释和处理指令。
It might contain several, as well as comments and processing instructions. For instance, it could look like this.
Liquid XMLDiff具有很多特定于XML的选项,比如删除空白、注释和处理器指令。
Liquid XMLDiff has many XML-specific options such as removing whitespace, comments, and processor directives.
将跳过注释和处理指令并自动对实体引用进行解析。
Comments and processing instructions are skipped and entity references are automatically resolved.
该元素可包含文本、空白、有效空白、cdata节、注释和处理指令。
The element can contain text, white space, significant white space, CDATA sections, comments and processing instructions.
当遇到任何标记(包括注释和处理指令)时,它就会停止。
It stops when any markup is encountered, including comments and processing instructions.
当遇到任何标记(包括注释和处理指令)时,它就会停止。
It stops when any markup is encountered, including comments and processing instructions.
应用推荐