pugixml 1.9 manual解读(部分)

前端之家收集整理的这篇文章主要介绍了pugixml 1.9 manual解读(部分)前端之家小编觉得挺不错的,现在分享给大家,也给大家做个参考。

Plain character data nodes (node_pcdata) represent plain text in XML. PCDATA nodes have a value,but do not have a name or children/attributes. Note that plain character data is not a part of the element node but instead has its own node; an element node can have several child PCDATA nodes. The example XML representation of text nodes is as follows:

<node> 
  text1
    <child/>
  text2
</node>

Here "node" element has three children,two of which are PCDATA nodes with values " text1 " and " text2 ".

翻译:在XML文件中纯字符数据节点代表纯字符。纯字符数据节点有一个值,但是没有相应的名字及其属性。注意到纯字符数据不是元素节点的一部分只但又它自己的节点。一个元素节点可以有几个子纯字符数据节点。具有问文本节点的代表例子如下:...

这里,节点元素有三个子元素,它们是text1,text2,<child/>. 其中两个j节点是纯字符数据。

猜你在找的XML相关文章