Project

General

Profile

« Previous | Next » 

Revision 4040

xpath.py: put_obj(): Use new get_values(), so that the returned nodes are not modified by XML tree transformations, such as those performed by xml_func.process()

View differences:

lib/xpath.py
352 352
    xpath = xpath[:] # don't modify input!
353 353
    id_path = set_id(xpath, id_, has_types)
354 354
    if value != None: set_value(xpath, value)
355
    return (get(root, xpath, True), get_1(root, id_path))
355
    return (get_values(root, xpath, True), get_1(root, id_path))
356 356

  
357 357
def path2xml(xpath, first_branch=True):
358 358
    root = xml_dom.create_doc().documentElement

Also available in: Unified diff