MCPcopy Index your code
hub / github.com/python/cpython / writexml

Method writexml

Lib/xml/dom/minidom.py:1827–1839  ·  view source on GitHub ↗
(self, writer, indent="", addindent="", newl="", encoding=None,
                 standalone=None)

Source from the content-addressed store, hash-verified

1825 return _clone_node(node, deep, self)
1826
1827 def writexml(self, writer, indent="", addindent="", newl="", encoding=None,
1828 standalone=None):
1829 declarations = []
1830
1831 if encoding:
1832 declarations.append(f'encoding="{encoding}"')
1833 if standalone is not None:
1834 declarations.append(f'standalone="{"yes" if standalone else "no"}"')
1835
1836 writer.write(f'<?xml version="1.0" {" ".join(declarations)}?>{newl}')
1837
1838 for node in self.childNodes:
1839 node.writexml(writer, indent, addindent, newl)
1840
1841 # DOM Level 3 (WD 9 April 2002)
1842

Callers

nothing calls this directly

Calls 4

appendMethod · 0.45
writeMethod · 0.45
joinMethod · 0.45
writexmlMethod · 0.45

Tested by

no test coverage detected