Revision 3626
Added by Aaron Marcuse-Kubitza over 12 years ago
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
xpath.py: path2xml(): Skip to tree created inside root, since that is how callers want to use the returned node