Project

General

Profile

« Previous | Next » 

Revision 142

xpath.py: Refactored xml_func.py to avoid needing a doc parameter for the XML document

View differences:

map
120 120
                for value, out in metadata: put_col(out, value)
121 121
                for i, col in enumerate(cols):
122 122
                    if row[i] != '' and col in map_: put_col(map_[col], row[i])
123
        xml_func.process(doc1)
123
        xml_func.process(root)
124 124
    else: doc1 = doc0
125 125
    
126 126
    # Output XML tree

Also available in: Unified diff