Hi guys,
a not so complex question:
form xml.etree.ElementTree import *
>>> tostring("<home><room>bedroom</room></home>")
'<home><room>bedroom</room></home>'
I would like to have the indentation in for the string. Something like:
<home>
<room>bedroom</room>
</home>
Of course my document is a little complex. Is it possible to have it in an automatic way? And if not, could you suggest me an easy way to do it?
Thank you.
Pietro.