wsgidav.xml_tools.xml_to_bytes

wsgidav.xml_tools.xml_to_bytes(element, *, pretty=False)[source]

Wrapper for etree.tostring, that takes care of unsupported pretty_print option and prepends an encoding header.