(elem)
Loop through all children and return text only. 
    
    Reimplements method of same name added to ElementTree in Python 2.7
Loop through all children and return text only. 
    
    Reimplements method of same name added to ElementTree in Python 2.7
Loop through all children and return text only . Reimplements method of same name added to ElementTree in Python 2 . 7
def itertext(elem):
    """ Loop through all children and return text only. 
    
    Reimplements method of same name added to ElementTree in Python 2.7
    
    """
    if elem.text:
        yield elem.text
    for e in elem:
        for s in itertext(e):
            yield s
        if e.tail:
            yield e.tail
def itertext ( elem ) : if elem . text : yield elem . text for e in elem : for s in itertext ( e ) : yield s if e . tail : yield e . tail