Attention
You are looking at outdated documentation for version 2.x. A newer version is available.
wsgidav.xml_toolsΒΆ
Description
Small wrapper for different etree packages.
Functions
elementContentAsString(element) |
Serialize etree.Element. |
isEtreeElement(obj) |
|
makeMultistatusEL() |
Wrapper for etree.Element, that takes care of unsupported nsmap option. |
makePropEL() |
Wrapper for etree.Element, that takes care of unsupported nsmap option. |
makeSubElement(parent, tag[, nsmap]) |
Wrapper for etree.SubElement, that takes care of unsupported nsmap option. |
stringToXML(text) |
Convert XML string into etree.Element. |
xmlToBytes(element[, pretty_print]) |
Wrapper for etree.tostring, that takes care of unsupported pretty_print option and prepends an encoding header. |
Other Members
Element(tag[, attrib]) |
|
SubElement(parent, tag[, attrib]) |
|
compat |
Tool functions to support Python 2 and 3. |
etree |
Defused xml.etree.ElementTree facade |
logging |
Logging package for Python. |
tostring(element[, encoding, method]) |
|
useLxml |
bool(x) -> bool |