它返回匹配它的所有子节点的结果。
为注释添加了一个新的子节点。
使用XMLUpdate追加子节点。
元素可以具有子节点。
然后,您可以遍历子节点,直至找到照片节点。
You can then go through child nodes until you find the photo node.
您表中的每行可能有列数据,也可能有子节点。
Just think of each row in your table as potentially having column data, as well as optionally having child nodes.
假设每个部门的子节点表示一组用户。
This is assuming that the children of each department represent a group of users.
另一个为后续深度的子节点生成XDIME元素。
The other generates XDIME elements for child nodes of subsequent depth.
第二个子节点是and节点。
元素是元素的一个子节点。
但是您应该在哪里正确地存储子节点之间的文本呢?
But where exactly should you store the text that comes between child nodes?
本例中,它有2个子节点。
一个为第一级子节点生成XDIME元素。
partners子节点封装了不同类型的合作伙伴。
lxml保持子节点及其父节点之间的引用。
LXML retains references between child nodes and their parents.
因此,部门节点的子节点具有不同的用户成员。
Therefore, the children of department nodes have different users as their members.
得到元素的子节点。
在所有其他情况下,子节点都视为要替换的值。
In all other cases, the child node is considered as the value to be replaced.
它允许使用任意数量的子节点或属性,并且可以使用任意名称。
It allows any number of child nodes or properties, which can have any names.
所有元素的子节点,包括文本节点,现在都是可用的。
All of the element's child nodes, including text nodes, are now available.
get children:获取节点的子节点列表。
您不能访问address的子节点的任何文本内容。
You don't access any of the text of the children of address.
它返回具有给定名称的所有子节点,即提要中所有元素。
It returns all of the child-nodes with the given name, that is, all of the elements in the feed.
主节点类型定义了节点的特征,例如允许节点拥有的属性和子节点。
A primary node type defines the characteristics of the node, such as the properties and child nodes that the node is allowed to have.
在那种情况下,当您需要它的子节点时要说明这种可能性。
In that case, you need to account for the possibility when you ask for it's children.
此函数接受源节点,并将其作为子节点复制到目标节点下。
This function takes the source node and copies it over as a child under the destination node.
为此,需要检索库中的内容并建立子节点(文件夹和文档)。
For this, you need to retrieve the contents from that library and build the child nodes (the folders and documents).
缺省情况下,用于格式设置的空白被丢弃,简单元素和属性没有子节点。
By default, formatting white space is discarded and simple elements and attributes do not have child nodes.
到目前为止,您已经看到了处理父节点所拥有的子节点的页面。
So far, you have seen pages that deal with child nodes owned by parent nodes.
它们之间定义了调用协议,并由节点实现,节点也包含子节点。
A call protocol is defined between them and implemented by the nodes, which also collect the children.
应用推荐