Project

General

Profile

« Previous | Next » 

Revision 77

Merged xml_xpath.py into xpath.py in preparation for changing the XPath parse tree to be the XML DOM tree itself

View differences:

map
63 63
    # Input datasource to XML tree, mapping if needed
64 64
    if in_is_xml: doc = xml.dom.minidom.parse(sys.stdin)
65 65
    if map_path != None:
66
        import xml_xpath
67
        
68 66
        out_doc = xml.dom.minidom.getDOMImplementation().createDocument(None,
69 67
            dest, None)
70 68
        if in_is_xml: raise Exception('XML-XML mapping not supported yet')
......
82 80
                        path = copy.deepcopy(map_[name]) # don't modify value!
83 81
                        xpath.set_id(path, row_id, has_types)
84 82
                        xpath.set_value(path, value)
85
                        xml_xpath.get(out_doc, path, True)
83
                        xpath.get(out_doc, path, True)
86 84
                row_idx += 1
87 85
        doc = out_doc
88 86
    

Also available in: Unified diff