read_zipfile_xml

read_zipfile_xml(path: str | Path, inner_path: str, **kwargs: Any) lxml.etree.ElementTree[source]

Read an inner XML file from a zip archive.

Parameters:
  • path – The path to the zip archive

  • inner_path – The path inside the zip archive to the xml file

  • kwargs – Additional kwargs to pass to lxml.etree.parse()

Returns:

An XML element tree