First, determine the element tag and then get the text node value for the element tag.
您首先要确定元素标签,然后获得元素标签的文本节点值。
Here you have a struct that includes the first element as a data item and the second element as a pointer to the next node.
这样您就拥有了一个struct,其中第一个元素为数据条目,第二个元素为指向下一个节点的指针。
It can also save time, if it turns out (as it often does) that the only thing done with the node-set is to test whether it is empty, or to get the value of its first element.
它还可以节省时间,如果对于节点集的唯一操作就是测试它是否是空的(通常是这种情况),或者对它的第一个元素进行赋值。
应用推荐