read_archive
read_archive#
- read_archive(path: Union[str, pathlib.Path, cloudpathlib.cloudpath.CloudPath], regex: Optional[str] = None) lxml.etree._Element [source]#
Read an XML file from inside an archive (zip or tar) Convenient duplicate of
files.read_archived_xml
Manages two cases: - complete path to an XML file stored inside an archive. In this case the filetree from inside the archive should be separated with a
!
. Don’t need to start with zip or tar - path to the archive plus a regex looking inside the archive. Duplicate behaviour tofiles.read_archived_xml
- Parameters
- Returns
XML Root
- Return type
_Element