Attention

You are looking at outdated documentation for version 2.x. A newer version is available.

wsgidav.xml_tools.xmlToBytes

wsgidav.xml_tools.xmlToBytes(element, pretty_print=False)[source]

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