我有一个巨大的列表,里面有不同的作者和他们选择的作品,放在XML语言的<list> (名称端bibliography.xml)中。</abbr>)</bibl></item>import xml.etree.ElementTree as ET
tree = ET.parse('bibliography.xmlwork.get('persName
我有一个大小适中的XML文件,我正在使用Python中的以下代码从monit API中提取该文件。(parsedXML, xmltodict.parse(data)) #Parsing to dict the XML file created
我使用XMLtoDICT将XML转换为字典,因为我认为这将更容易搜索和提取但是,我认为搜索python的每个“层”并提取出整个节点并不是一种