Attention

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

wsgidav.xml_tools.elementContentAsString

wsgidav.xml_tools.elementContentAsString(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().