The third template suppresses all text nodes.
第三个模板删除了所有文本节点。
Listing 29 shows the results with the text nodes ignored.
清单29展示了忽略文本节点后的结果。
So you have text nodes, element nodes, and attribute nodes.
所以可以有文本节点、元素节点和属性节点。
The element labels and element text nodes are stacked vertically.
元素标签与元素文本节点是垂直堆放的。
The XML document has only elements and element text nodes to parse.
XML文档只需要解析元素与元素文本节点。
The templates in Listing 18 isolate the elements from the text nodes.
清单18中的模板将元素从文本节点中分离出来。
This returns all the text contained in the logically-adjacent text nodes.
它返回在逻辑相邻的文本节点中所包含的所有文本。
This returns all the text contained in the logically - adjacent text nodes.
它返回在逻辑相邻的文本节点中所包含的所有文本。
It needs to carefully avoid any comments or other non-text nodes that might appear.
必须小心避免任何注释或可能出现的其它非文本节点。
node() matches all node types (elements, text nodes, comments, attributes, and so on)
node() 与所有的节点类型匹配(元素、文本节点、注释、属性,等等)
DOM provides this, in the form of a navigable tree of elements, attributes, and text nodes.
DOM提供了一个这样的模型,一个可导航的元素、属性和文本节点树。
Rules to match other nodes, such as text nodes, attributes, and comments, are comparatively rare.
匹配其它节点(如文本节点、属性和注释)的规则相对较少。
Optionally, normalize the text nodes of this new element, to make sure things are easier later on.
可能需要规范化这个新元素的文本节点以简化后续操作。
XML is stored in the database in a binary format, and the text nodes are stored as UTF-8 code points.
XML是以二进制格式存储在数据库中的,文本节点被存储为utf - 8代码点。
Each element is represented by an element node, and the actual data values are represented by text nodes.
每个元素由元素节点表示,实际的数据值由文本节点表示。
Other nodes, such as text nodes or XML comments, do not have a node name and therefore cannot be renamed.
文本节点或XML注释等其他节点没有节点名称,因此无法重命名。
The position function counts nodes-both elements and text nodes-even if the text is just white space.
position函数计数节点—元素和文本节点—即使文本只是空白。
In XPath 1.0 and XSLT 1.0, you would create 16 different text nodes and then group those nodes into a variable.
在XPath 1.0和XSLT 1.0中,您将创建16个不同的文本节点,然后将这些节点聚合到一个变量中。
You'll find only the START_TAG and text event types, which correspond with element start tags and element text nodes.
您只会看到START _ TAG与TEXT事件类型,它们分别对应于元素开始标签与元素文本节点。
Listing 28 includes a template to ignore white space text nodes that affect the position of the elements in Listing 17.
清单28包含一个模板,它忽略会影响清单17中元素的位置的那些空白文本节点。
You no longer have to worry about the possibility that your text is being held by several adjacent text nodes that need to be concatenated.
不再需要担心文本包含在几个相邻的Text节点中,因而需要串接这些节点的情况。
For instance, text nodes, CDATA sections, comments, processing instructions, attributes, whitespace, document types, and XML declarations have values.
例如,文本节点、CDATA部件、注释、处理指令、属性、空格、文档类型和XML声明具有值。
The relevance between result fragments and user information need is the sum of the contributions of the element, attribution and text nodes in the fragments.
结果片段与用户信息需求的相关性是由其中的元素、属性和文本结点的总贡献决定的。
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.
例如,图3显示Jaxen需要进行一些测试,运用name函数对文字节点、注释节点、处理指令节点、属性节点和名称空间节点进行测试。
It has two other internal variables, a currentMessage for a Message instance that is being parsed, and a StringBuilder variable called builder that stores character data from text nodes.
它有另外两个内部变量,currentMessage 针对被解析的Message实例,以及名称为builder 的StringBuilder变量,用于存储文本节点中的字符数据。
We've also shown you how DOM Level 3 Core lets you access and modify the text content of your document in a more natural way than having to deal with text nodes that tend to get in the way.
我们还展示了DOMLevel3Core如何让您以更自然的方式访问和修改文档中的文本内容,而不必处理总爱制造麻烦的Text节点。
The example in Listing 5 does not add any of these TEXT nodes.
清单5中的示例没有添加任何这样的TEXT节点。
The code must select only ELEMENT type nodes, because TEXT nodes do not support this method and produce a non-recoverable error in Perl.
在代码中只能选择element类型的节点,因为该方法不支持TEXT节点,并且会在Perl中产生一个不可恢复的错误。
For example, you can use this method to get rid of comments, to transform CDATASection nodes into Text nodes, or to discard all the namespace declaration attributes from the tree.
例如,可以使用这个方法去掉注释,将CDATASection节点转换为Text节点,或者放弃树中所有命名空间声明属性。
For example, you can use this method to get rid of comments, to transform CDATASection nodes into Text nodes, or to discard all the namespace declaration attributes from the tree.
例如,可以使用这个方法去掉注释,将CDATASection节点转换为Text节点,或者放弃树中所有命名空间声明属性。
应用推荐