I have an tar.gz file on my local machine called abc.aXML.gz
, which contains many XML files. I want to find some data from these files but don't know how to parse these file using Elementtree
and gzip
.
import xml.etree.ElementTree as ET
import gzip
document = ET.parse(gzip("abc.aXML.gz"))
root = document.getroot()