wsgidav.xml_tools.element_content_as_string

wsgidav.xml_tools.element_content_as_string(element)[source]

Serialize etree.Element.

Note: element may contain more than one child or only text (i.e. no child

at all). Therefore the resulting string may raise an exception, when passed back to etree.XML().