def _getText(nodelist):
 rc = []
 for node in nodelist:
  if (node.nodeType == node.TEXT_NODE):
   rc.append(node.data)
 return ''.join(rc)

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