daemon/core/misc/xmlutils.py
def iterDescendantsWithName(dom, tagName, max_depth = 0):
    '''\
    Iterate over descendant elements whose name is contained in
    tagName (or is named tagName if tagName is a string).  Only
    consider nodes up to max_depth deep when max_depth is greater than
    zero.
    '''
    if isinstance(tagName, basestring):
        tagName = (tagName,)
    def match(d):
        return d.tagName in tagName
    return iterMatchingDescendants(dom, match, max_depth)
\
    Iterate over descendant elements whose name is contained in
    tagName (or is named tagName if tagName is a string).  Only
    consider nodes up to max_depth deep when max_depth is greater than
    zero.
    
\
Iterate over descendant elements whose name is contained in
tagName (or is named tagName if tagName is a string).  Only
consider nodes up to max_depth deep when max_depth is greater than
zero.
\ Iterate over descendant elements whose name is contained in tagName ( or is named tagName if tagName is a string ) . Only consider nodes up to max_depth deep when max_depth is greater than zero .
def iterDescendantsWithName(dom, tagName, max_depth = 0):
    if isinstance(tagName, basestring):
        tagName = (tagName,)
    def match(d):
        return d.tagName in tagName
    return iterMatchingDescendants(dom, match, max_depth)
def iterDescendantsWithName ( dom , tagName , max_depth = 0 ) : if isinstance ( tagName , basestring ) : tagName = ( tagName , ) def match ( d ) : return d . tagName in tagName return iterMatchingDescendants ( dom , match , max_depth )
\
Iterate over descendant elements whose name is contained in
tagName (or is named tagName if tagName is a string).
\ Iterate over descendant elements whose name is contained in tagName ( or is named tagName if tagName is a string ) .
'''\
    Iterate over descendant elements whose name is contained in
    tagName (or is named tagName if tagName is a string).  Only
    consider nodes up to max_depth deep when max_depth is greater than
    zero.
    '''
dom
tagName
max_depth