lxml is employed directly even though some linters (e.g.:
bandit) report to employ
instead, because that package’s extension with
lxml is marked as deprecated.
To use the module, import is as if importing
from weaver.xml_util import XML # ElementTree from weaver import xml_util data = xml_util.fromstring("<xml>content</xml>")
- weaver.xml_util.parse(source: Union[str, io.BufferedReader], parser: lxml.etree.XMLParser = XML_PARSER) XML [source]