Here's a fairly simple way to pretty print xml with python. By pretty printing XML, I mean indenting XML with python nicely.
from xml.dom.ext import PrettyPrint
from xml.dom.ext.reader.Sax import FromXmlFile
doc = FromXmlFile(sys.argv)
Are there any other ways to pretty print xml with python?
How do you pretty print xml with your favourite xml API? Pretty printing xml with ElementTree anyone?
UPDATE: there's a few other ways listed in the comments.