Project

General

Profile

« Previous | Next » 

Revision 23

In data2xml, fixed xpath.get() to do last_only optimization properly for pointer targets

View differences:

xml_util.py
73 73
    else: node.nodeValue = value
74 74

  
75 75
def by_tag_name(node, name, last_only=False):
76
    # The last_only optimization just checks the most recently inserted node
76
    # last_only optimization returns last (most recently inserted) matching node
77 77
    children = []
78 78
    for child in NodeElemReverseIter(node):
79 79
        if child.tagName == name:

Also available in: Unified diff