title: Python - Element Tree is removing the XML declaration
body: <p>I'm writing some XML with element tree. </p>
  
  <p>I'm giving the code an empty template file that starts with the XML declaration:<code>&lt;?xml version= "1.0"?&gt;</code> when ET has finished making its changes and writes the completed XML its stripping out the declarion and starting with the root tag. How can I stop this? </p>
  
  <p>Write call:</p>
  
  <p><code>ET.ElementTree(root).write(noteFile)</code> </p>