Revision 2007
Added by Aaron Marcuse-Kubitza over 12 years ago
xpath.py | ||
---|---|---|
340 | 340 |
xpath = xpath[:] # don't modify input! |
341 | 341 |
id_path = set_id(xpath, id_, has_types) |
342 | 342 |
if value != None: set_value(xpath, value) |
343 |
return (get(root, xpath, True), get(root, id_path)) |
|
343 |
return (get(root, xpath, True), get_1(root, id_path))
|
|
344 | 344 |
|
345 | 345 |
def path2xml(xpath, first_branch=True): |
346 | 346 |
root = xml_dom.create_doc().documentElement |
Also available in: Unified diff
xpath.py: put_obj(): Return the id_attr_node using get_1() because it should only be one node