#NEWLINE# def getText( node ) : #NEWLINE# #INDENT# rc = [ ] #NEWLINE# for node in node . childNodes : #NEWLINE# #INDENT# if ( node . nodeType == node . TEXT_NODE ) : #NEWLINE# #INDENT# rc . append ( node . data ) #NEWLINE# #UNINDENT# return '' . join ( rc )