code: def _extract_text_and_child_element_list(minidom_node):
      
      tl = []
      ntl = []
      for c in minidom_node.childNodes:
          if c.nodeType == xml.dom.minidom.Node.TEXT_NODE:
              tl.append(c)
          else:
              ntl.append(c)
      try:
          tl = [i.data.strip() for i in tl]
          text_content = ''.join(tl)
      except:
          text_content = ''
      return text_content, ntl
docs: Returns a pair of the "child" content of minidom_node:
          the first element of the pair is a concatenation of the text content
          the second element is a list of non-text nodes.
  
      The string concatenation strips leading and trailing whitespace from each
      bit of text found and joins the fragments (with no separator between them).