title: Specify newline character for cElementTree
body: <h2>Code</h2>
  
  <p>I'm writing an xml file with cElementTree like this:</p>
  
  <pre><code>cElementTree.ElementTree(xml_tree]).write(xmlPath, encoding="ISO-8859-1", xml_declaration=True)  
  </code></pre>
  
  <hr>
  
  <h2>actual result</h2>
  
  <p>This gives the following file (on Windows):</p>
  
  <pre><code>&lt;?xml version='1.0' encoding='iso-8859-1'?&gt;&lt;tag1 = "1"&gt;&lt;/tag1&gt;
  </code></pre>
  
  <p>So the newlines are missing. </p>
  
  <p>I tried adding the appropiate windows newline characters <code>\r\n</code> 'by hand', now I get this:</p>
  
  <pre><code>&lt;?xml version='1.0' encoding='iso-8859-1'?&gt;&lt;tag1 = "1"&gt;
  &lt;/tag1&gt;
  </code></pre>
  
  <hr>
  
  <h2>desired result</h2>
  
  <p>However, I would like to have the correct newline character after each line, so that my output should look this:</p>
  
  <pre><code>&lt;?xml version='1.0' encoding='iso-8859-1'?&gt;
  &lt;tag1 = "1"&gt;
  &lt;/tag1&gt;
  </code></pre>
  
  <p>How can I achieve that?</p>