Revision 82
Added by Aaron Marcuse-Kubitza about 13 years ago
xpath.py | ||
---|---|---|
186 | 186 |
parent = node |
187 | 187 |
elem_idx += 1 |
188 | 188 |
return parent |
189 |
|
|
190 |
def put_obj(doc, xpath, id_, has_types, value): |
|
191 |
xpath = copy.deepcopy(xpath) # don't modify input! |
|
192 |
set_id(xpath, id_, has_types) |
|
193 |
set_value(xpath, value) |
|
194 |
get(doc, xpath, True) |
Also available in: Unified diff
Moved XPath prep code (setting ID, value) to xpath.py