Simple function to return value from XML

def _getText(nodelist):
    '''
    Simple function to return value from XML
    '''
    rc = []
    for node in nodelist:
        if node.nodeType == node.TEXT_NODE:
            rc.append(node.data)
    return ''.join(rc)