xml2dict

mail@pastecode.io avatar
unknown
python
2 years ago
264 B
3
Indexable
Never
import xmltodict

with open("S3A_OPER_AUX_POEORB_POD__20160725T071857_V20160629T225943_20160701T005943_DGNS.EOF") as xml_file:
    data_dict = xmltodict.parse(xml_file.read())
    
data = data_dict['Earth_Explorer_File']['Data_Block']['List_of_OSVs']['OSV']