Project

General

Profile

« Previous | Next » 

Revision 2000

xpath.py: put_obj(): Return the inserted node so it can be used to change the inserted value

View differences:

xpath.py
327 327
    xpath = xpath[:] # don't modify input!
328 328
    set_id(xpath, id_, has_types)
329 329
    if value != None: set_value(xpath, value)
330
    get(root, xpath, True)
330
    return get(root, xpath, True)
331 331

  
332 332
def path2xml(xpath, first_branch=True):
333 333
    root = xml_dom.create_doc().documentElement

Also available in: Unified diff