write_xml_doc

wwt_data_formats.write_xml_doc(root_element, indent=True, dest_stream=None, dest_wants_bytes=False)[source]

Write out some XML elements, indenting them by default

When indent is true, the default setting, this function modifies root_element.

If dest_stream is left unspecified, sys.stdout is used.

Due to some subtle cross-platform issues with proper text encoding, do not use this function with a StringIO argument. Instead, use stringify_xml_doc().