wsgidav.xml_tools

Description

Small wrapper for different etree packages.

Functions

element_content_as_string(element) Serialize etree.Element.
is_etree_element(obj)
make_multistatus_el() Wrapper for etree.Element, that takes care of unsupported nsmap option.
make_prop_el() Wrapper for etree.Element, that takes care of unsupported nsmap option.
make_sub_element(parent, tag[, nsmap]) Wrapper for etree.SubElement, that takes care of unsupported nsmap option.
string_to_xml(text) Convert XML string into etree.Element.
xml_to_bytes(element[, pretty_print]) Wrapper for etree.tostring, that takes care of unsupported pretty_print option and prepends an encoding header.

Other Members

Element
SubElement
compat Tool functions to support Python 2 and 3.
etree Defused xml.etree.ElementTree facade
logging Logging package for Python.
tostring(element[, encoding, method, …]) Generate string representation of XML element.
use_lxml bool(x) -> bool