MCPcopy Create free account
hub / github.com/RT-Thread/env-windows / writexml

Method writexml

tools/python-3.11.9-amd64/Lib/xml/dom/minidom.py:1816–1828  ·  view source on GitHub ↗
(self, writer, indent="", addindent="", newl="", encoding=None,
                 standalone=None)

Source from the content-addressed store, hash-verified

1814 return _clone_node(node, deep, self)
1815
1816 def writexml(self, writer, indent="", addindent="", newl="", encoding=None,
1817 standalone=None):
1818 declarations = []
1819
1820 if encoding:
1821 declarations.append(f'encoding="{encoding}"')
1822 if standalone is not None:
1823 declarations.append(f'standalone="{"yes" if standalone else "no"}"')
1824
1825 writer.write(f'<?xml version="1.0" {" ".join(declarations)}?>{newl}')
1826
1827 for node in self.childNodes:
1828 node.writexml(writer, indent, addindent, newl)
1829
1830 # DOM Level 3 (WD 9 April 2002)
1831

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