xml.dom.minidom.Node.toprettyxml()

Node.toprettyxml(indent="", newl="", encoding="")

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.

The encoding argument behaves like the corresponding argument of toxml().

doc_python
2016-10-07 17:47:48
Comments
Leave a Comment

Please login to continue.