code: def getText(nodelist):
      rc = []
      for node in nodelist:
          if node.nodeType == node.TEXT_NODE:
              rc.append(node.data)
      return "".join(rc)
  
file_path: cpython/Doc/includes/minidom-example.py
imports: import xml.dom.minidom
label_desc: Use image node_id 1 for calling a global function with example usage: getText(nodelist) and returns: str