def _get_text(nodes):
 return ''.join([n.data for n in nodes if (n.nodeType == n.TEXT_NODE)])

def _get_text ( nodes ) : return '' . join ( [ n . data for n in nodes if ( n . nodeType == n . TEXT_NODE ) ] )
dom utility routine for getting contents of text nodes .