它接受单个元素、文本节点或注释。
第三个模板删除了所有文本节点。
清单29展示了忽略文本节点后的结果。
元素标签与元素文本节点是垂直堆放的。
The element labels and element text nodes are stacked vertically.
使用text伪函数进行文本节点搜索。
然后,该变量被用作追加文本节点的输入。
XML文档只需要解析元素与元素文本节点。
The XML document has only elements and element text nodes to parse.
文本节点值位于相应标签右侧的布局更为可取。
A layout in which the text node values are to the right of the corresponding labels would be preferable.
清单18中的模板将元素从文本节点中分离出来。
The templates in Listing 18 isolate the elements from the text nodes.
它返回在逻辑相邻的文本节点中所包含的所有文本。
This returns all the text contained in the logically-adjacent text nodes.
它带两个参数——替换文本节点和被替换的子元素。
This takes in two parameters — the replacement text node and the child element that it's replacing.
清单4展示如何提取包含在节点中的所有文本节点?
Listing 4 shows you how to extract all the text nodes contained in a node.
设置对应TextView小部件上的文本节点值。
Set the text node values on the corresponding TextView widgets.
所以可以有文本节点、元素节点和属性节点。
可能需要规范化这个新元素的文本节点以简化后续操作。
Optionally, normalize the text nodes of this new element, to make sure things are easier later on.
您首先要确定元素标签,然后获得元素标签的文本节点值。
First, determine the element tag and then get the text node value for the element tag.
每个元素由元素节点表示,实际的数据值由文本节点表示。
Each element is represented by an element node, and the actual data values are represented by text nodes.
可能包含多个文本节点,以及注释和处理指令。
It might contain several, as well as comments and processing instructions. For instance, it could look like this.
在本例中,第一个模板规则匹配输入文档中的每个文本节点。
In this example, the first template rule matches every text node in the input document.
但是此类索引将包含xml列中所有文档的全部文本节点值。
However, such an index contains all text node values from all documents in the XML column.
匹配其它节点(如文本节点、属性和注释)的规则相对较少。
Rules to match other nodes, such as text nodes, attributes, and comments, are comparatively rare.
必须小心避免任何注释或可能出现的其它非文本节点。
It needs to carefully avoid any comments or other non-text nodes that might appear.
但是,更好的方法仍然是引用内容将被返回给其文本节点的元素。
But it's still better to reference the element for which content should be returned to its text nodes.
不能绝对保证请求文档中的double元素仅包含一个文本节点。
It's not absolutely guaranteed that the double element in the request document contains exactly one text node.
因为您单个地添加元素,所以只能编辑代表节点文本的单个文本节点。
Because you added elements separately, you can just edit the single text node that represents the text of the note.
DOM提供了一个这样的模型,一个可导航的元素、属性和文本节点树。
DOM provides this, in the form of a navigable tree of elements, attributes, and text nodes.
文本节点或XML注释等其他节点没有节点名称,因此无法重命名。
Other nodes, such as text nodes or XML comments, do not have a node name and therefore cannot be renamed.
最底层元素的值等于其文本节点,例如,元素“price”的值为29。
The value of an element at the lowest level is equal to its text node, for example the value of the element "price" is "29."
前者识别了元素节点“price”,而后者指向值为“29”的文本节点。
The former identifies the element node "price", the latter points to the text node with the value "29".
清单28包含一个模板,它忽略会影响清单17中元素的位置的那些空白文本节点。
Listing 28 includes a template to ignore white space text nodes that affect the position of the elements in Listing 17.
应用推荐