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
2025-01-10 15:47:30
Comments
Leave a Comment

Please login to continue.