Project

General

Profile

« Previous | Next » 

Revision 3330

xpath.py: get(): Support checking all children when the elem name is '*'

View differences:

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