blark.util.tree_to_xml_source

blark.util.tree_to_xml_source(tree: Element, encoding: str = 'utf-8', delimiter: str = '\r\n', xml_header: str = '<?xml version="1.0" encoding="{encoding}"?>', indent: str = '  ', include_utf8_sig: bool = True) bytes[source]

Return the contents to write for the given XML tree.