whitespace-only text nodes 空白的文本节点
You'll find only the START_TAG and text event types, which correspond with element start tags and element text nodes.
您只会看到START _ TAG与TEXT事件类型,它们分别对应于元素开始标签与元素文本节点。
For example, the next two queries may return the same result, but only if all "price" elements encountered during the query execution have a single text node and no other child nodes.
例如,下面两个查询可能返回相同的结果,但条件是仅当查询执行过程中所遇到的全部“price”元素都拥有单个文本节点且没有其他子节点。
The query in Listing 5 selects all nodes whose text contains "Last Trade," and for each one (I expect only one), outputs a table row containing the contents of the following node.
清单5中的查询语句将选择所有文本内容中包含“Last Trade”的节点,然后为每个节点(希望只有一个)输出一个包含后续节点内容的表格行。
应用推荐