load_xml
- load_xml(key: str, *subkeys: str, name: str, parse_kwargs: Mapping[str, Any] | None = None) lxml.etree.ElementTree[source]
Load an XML file with
lxml.- Parameters:
key – The module name
subkeys – A sequence of additional strings to join. If none are given, returns the directory for this module.
name – The name of the file to open
parse_kwargs – Keyword arguments to pass through to
lxml.etree.parse().
- Returns:
An ElementTree object
Warning
If you have lots of files to read in the same archive, it’s better just to unzip first.