加入收藏 | 设为首页 | 会员中心 | 我要投稿 李大同 (https://www.lidatong.com.cn/)- 科技、建站、经验、云计算、5G、大数据,站长网!
当前位置: 首页 > 百科 > 正文

pugixml 1.9 manual解读(部分)

发布时间:2020-12-16 23:37:55 所属栏目:百科 来源:网络整理
导读: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

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节点是纯字符数据。

(编辑:李大同)

【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容!

    推荐文章
      热点阅读