首页 > 其他分享 >xml.dom import minidom

xml.dom import minidom

时间:2022-11-07 09:13:30浏览次数:47  
标签:xml minidom 85111071 dom names import

https://blog.csdn.net/hju22/article/details/85111071

>>> from xml.dom import minidom
>>> root = dom.documentElement
>>> names = dom.getElementsByTagName("loc")

>>> for i in range(len(names)):
... print(names[i].firstChild.data)

标签:xml,minidom,85111071,dom,names,import
From: https://www.cnblogs.com/csnd/p/16864866.html

相关文章