def _getElementChilds(node, doLower = 1):
    """ returns list of (tagname, element) for all element childs of node """

    dolow = doLower and (lambda x:x.lower()) or (lambda x:x)
    return [ (dolow(no.tagName), no) for no in node.childNodes if no.nodeType != no.TEXT_NODE ]
 returns list of (tagname, element) for all element childs of node 
recipes/Python/355487_Pickle_PythObjects_DOM_tree_vice/recipe-355487.py