I have created a xml file using xml.etree.ElementTree in python. I then use
tree.write(filename, "UTF-8")
to write out the document to a file.
But when I open filename using a text editor (vi on linux), there are no newlines between the tags. Everything is one big line
How can I write out the document in a "pretty printed" format so that there are new lines (and hopefully indentations etc) between all the xml tags?
Thanks!