title: Why my xml outpout file isn't formatting?
body: <p>I use this code but it's not formatting my file:</p>
  <pre><code>formatTree = etree.parse(self.file)
  formatTree.write(self.file, pretty_print=True)
  </code></pre>
  <p>and the result:</p>
  <pre><code>&lt;ignoredIp&gt;
      &lt;ip&gt;10.11.100.65&lt;/ip&gt;&lt;ip&gt;10.11.100.66&lt;/ip&gt;&lt;ip&gt;10.11.100.67&lt;/ip&gt;&lt;ip&gt;10.11.100.68&lt;/ip&gt;&lt;ip&gt;10.11.100.69&lt;/ip&gt;&lt;ip&gt;10.11.100.70&lt;/ip&gt;&lt;/ignoredIp&gt;
  </code></pre>