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_elem()

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])

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

Other Members

use_lxml

bool(x) -> bool