PyDocs

Nav

Structured Markup Processing Tools

Node.writexml

  • Node.writexml(writer, indent='', addindent='', newl='', encoding=None, standalone=None)
Write XML to the writer object. The writer receives texts but not bytes as input, it should have a write() method which matches that of the file object interface. The indent parameter is the indentation of the current node. The addindent parameter is the incremental indentation to use for subnodes of the current one. The newl parameter specifies the string to use to terminate newlines.
Changed in 3.8, 3.9
  • 3.8: The writexml() 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.writexml.
See Also
No see-alsos for xml.dom.minidom/Node.writexml
0 Notes
No notes for Node.writexml