read_zipfile_xml

read_zipfile_xml(path, inner_path, **kwargs)[source]

Read an inner XML file from a zip archive.

Parameters:
  • path (Union[str, Path]) – The path to the zip archive

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

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

Returns:

An XML element tree

Return type:

lxml.etree.ElementTree