Project

General

Profile

« Previous | Next » 

Revision 133

map: Continued to add DB input support

View differences:

xpath.py
215 215
    set_id(xpath, id_, has_types)
216 216
    if value != None: set_value(xpath, value)
217 217
    get(doc, xpath, True)
218

  
219
def path2xml(xpath):
220
    doc = xml_dom.create_doc()
221
    get(doc, xpath, True)
222
    return doc.documentElement
223

  
224
def str2xml(xpath): return path2xml(parse(xpath))

Also available in: Unified diff