def prettify(xml_string):
reparsed = xml.dom.minidom.parseString(xml_string)<EOL>return reparsed.toprettyxml(indent="<STR_LIT:U+0020>")<EOL>
Indent an xml string with four spaces, and add an additional line break after each node.