title: .text output from XML document with xml.etree.ElementTree
body: <p>I'm trying to parse an XML document so that I only get the text inside the tag , but when I test-print the node, it's only showing square brackets, which means that my command print(rede.text) returns &quot;AttributeError: 'list' object has no attribute 'text'&quot;. Why is the XML-content stored as a list object and how I can access the text inside the tag?</p>
  <pre><code>import os
  from xml.etree import ElementTree
  file_name = '19008-data.xml'
  full_file = os.path.abspath(os.path.join('WP19_Protokolle_2018-2020',file_name))
  dom = ElementTree.parse(full_file)
  redner = dom.findall('rede')
  print(redner)
  </code></pre>
  <p>output: [ ]</p>
  <pre><code>import os
  from xml.etree import ElementTree
  file_name = '19008-data.xml'
  full_file = os.path.abspath(os.path.join('WP19_Protokolle_2018-2020',file_name))
  dom = ElementTree.parse(full_file)
  redner = dom.findall('rede')
  print(redner.text)
  </code></pre>
  <p>AttributeError: 'list' object has no attribute 'text'</p>
  <p><a href="https://i.stack.imgur.com/0yEjW.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/0yEjW.png" alt="extract from XML-document" /></a></p>