def _get_text(nodelist):
    """ Extract an string from a xml node data."""        
    rc_ = [node.data for node in nodelist 
                if node.nodeType == node.TEXT_NODE]                
    return ''.join(rc_).strip().encode('ascii')