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中的查询语句将选择所有文本内容中包含“LastTrade”的节点,然后为每个节点(希望只有一个)输出一个包含后续节点内容的表格行。
The XML document has only elements and element text nodes to parse.
XML文档只需要解析元素与元素文本节点。
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中产生一个不可恢复的错误。
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中产生一个不可恢复的错误。
应用推荐