title: Convert Python ElementTree to string
body: <p>Whenever I call <code>ElementTree.tostring(e)</code>, I get the following error message:</p>
  
  <pre><code>AttributeError: 'Element' object has no attribute 'getroot'
  </code></pre>
  
  <p>Is there any other way to convert an ElementTree object into an XML string?</p>
  
  <p>TraceBack:</p>
  
  <pre><code>Traceback (most recent call last):
    File "Development/Python/REObjectSort/REObjectResolver.py", line 145, in &lt;module&gt;
      cm = integrateDataWithCsv(cm, csvm)
    File "Development/Python/REObjectSort/REObjectResolver.py", line 137, in integrateDataWithCsv
      xmlstr = ElementTree.tostring(et.getroot(),encoding='utf8',method='xml')
  AttributeError: 'Element' object has no attribute 'getroot'
  </code></pre>