title: ElementTree Returns Element Instead of ElementTree
body: <p>I am trying to build an <em>ElementTree</em> from a string. When I do the following (as set out in <a href="https://stackoverflow.com/questions/8580234/python-elementtree-parsing-a-string-and-getting-elementtree-instance/%20Python%20ElementTree:%20Parsing%20a%20string%20and%20getting%20ElementTree%20instance%22">Python ElementTree: Parsing a string and getting ElementTree instance</a>), I get an <em>Element</em> instead of an <em>ElementTree</em>:</p>
  
  <pre><code>companyTree = ElementTree.ElementTree(ElementTree.fromstring('&lt;companies&gt;&lt;/companies&gt;'))
  </code></pre>
  
  <p>If I do</p>
  
  <pre><code>print(companyTree.getroot())
  </code></pre>
  
  <p>I get</p>
  
  <blockquote>
    <p>AttributeError: 'xml.etree.ElementTree.Element' object has no attribute 'getroot'</p>
  </blockquote>
  
  <p>In other words, companyTree is an <em>Element</em> instead of an <em>ElementTree</em>. According to the accepted answer in <a href="https://stackoverflow.com/questions/8580234/python-elementtree-parsing-a-string-and-getting-elementtree-instance/%20Python%20ElementTree:%20Parsing%20a%20string%20and%20getting%20ElementTree%20instance%22">1</a>, I should be getting an ElementTree. Has the API changed? How do I get an ElementTree from a string now? Thanks.</p>
  
  <p>Note that there is more on this problem in <a href="https://stackoverflow.com/questions/32620254/python-elementtree-elementtree-vs-root-element" title="Python ElementTree: ElementTree vs root Element">Python ElementTree: ElementTree vs root Element</a></p>