Return a pretty-printed version of the document. indent specifies the indentation string and defaults to a tabulator; newl specifies the string emitted at the end of each line and defaults to \n.
xml.dom.minidom/Node.toprettyxml
Node.toprettyxml