Thanks Robert Kern :<br><br>"prettyprint" ; indent() does the trick ;-) <br><br><br><pre>>ElementTree writes exactly what you tell it to. In XML, whitespace is <br>>significant. If you want newlines and/or indentation to make it pretty-looking, <br>
>then you need to add those to your elements.<br>><br>>Fredrik provides an example function for doing this:<br>><br>> <a href="http://effbot.org/zone/element-lib.htm#prettyprint">http://effbot.org/zone/element-lib.htm#prettyprint</a><br>
<br></pre><br>