code: def xml2text(xml):
      
      text = u''
      root = ET.fromstring(xml)
      for child in root.iter():
          if child.tag == qn('w:t'):
              t_text = child.text
              text += t_text if t_text is not None else ''
          elif child.tag == qn('w:tab'):
              text += '\t'
          elif child.tag in (qn('w:br'), qn('w:cr')):
              text += '\n'
          elif child.tag == qn("w:p"):
              text += '\n\n'
      return text
docs: A string representing the textual content of this run, with content
      child elements like ``<w:tab/>`` translated to their Python
      equivalent.
      Adapted from: https://github.com/python-openxml/python-docx/