Revision 3330
Added by Aaron Marcuse-Kubitza over 12 years ago
lib/xpath.py | ||
---|---|---|
244 | 244 |
if parent == None: return [] # don't try to create doc root's parent |
245 | 245 |
root = parent |
246 | 246 |
children = [root] |
247 |
elif is_all(elem): children = list(xml_dom.NodeElemIter(root)) |
|
247 | 248 |
else: |
248 | 249 |
children = xml_dom.by_tag_name(root, elem.name, |
249 | 250 |
last_only=(last_only and (elem.keys == [] or is_instance(elem))), |
Also available in: Unified diff
xpath.py: get(): Support checking all children when the elem name is '*'