... Measuring and Controlling node 测控节点 And No Node Name 也无节点名称 Grouping and children node types 组和子节点 ...
基于4个网页-相关网页
Node types are returned as integers, and allow you to handle each node appropriately; an element (type 1) has a name, but no value, whereas a text node (type 3) has a value but no name.
节点类型以整数返回,并且允许您适当地处理每一个节点;一个元素(类型1)有名称没有值,但是一个文本节点(类型3)有值没有名称。
For example, if a certain element is always a leaf node in a particular document type (and has no XML attributes), you might want to refer to its PCDATA just by the node name itself.
比方说,如果特定文档中某个元素总是叶子节点(而且没有xml属性),您可能希望通过节点名本身来引用其PC DATA。
应用推荐