Return to Snippet

Revision: 32193
at September 21, 2010 02:11 by silviud


Initial Code
def get_text(node_list):
              text = []
              for node in node_list:
                  if node.nodeType == node.TEXT_NODE:
                      text.append(node.data)
              return "".join(text).strip()

Initial URL

                                

Initial Description

                                

Initial Title
get text from xml node (xml.dom)

Initial Tags
python, xml

Initial Language
Python