PyDocs

Nav

Structured Markup Processing Tools

Node.toprettyxml

  • Node.toprettyxml(indent='\t', newl='\n', encoding=None, standalone=None)
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.
Changed in 3.8, 3.9
  • 3.8: The toprettyxml() method now preserves the attribute order specified by the user.
  • 3.9: The standalone parameter was added.
0 Examples
No examples for xml.dom.minidom/Node.toprettyxml.
See Also
No see-alsos for xml.dom.minidom/Node.toprettyxml
0 Notes
No notes for Node.toprettyxml