Project

General

Profile

« Previous | Next » 

Revision 95

xpath.py: Fixed creation of attrs so it happens even when node already exists

View differences:

scripts/lib/xpath.py
159 159
                node = parent.getAttributeNode(elem.name)
160 160
            else: node = parent.appendChild(doc.createElement(elem.name))
161 161
            if elem.value != None: xml_dom.set_value(doc, node, elem.value)
162
        if create:
162 163
            for attr in elem.keys + elem.attrs:
163 164
                get(doc, attr, create, last_only, node)
164 165
        

Also available in: Unified diff