Project

General

Profile

« Previous | Next » 

Revision 3626

xpath.py: path2xml(): Skip to tree created inside root, since that is how callers want to use the returned node

View differences:

lib/xpath.py
354 354
def path2xml(xpath, first_branch=True):
355 355
    root = xml_dom.create_doc().documentElement
356 356
    get(root, xpath, True)
357
    return root
357
    return root.firstChild # skip to tree created inside root
358 358

  
359 359
def xml_set_id(root, id_): xml_dom.set_id(root.firstChild, id_)

Also available in: Unified diff