Python minidom
XML parse with minidom
1 from xml.dom import minidom
2 print("Hello world")
3 a="<a><b>aaaa</b><b>bbcc</b></a>"
4 doc = minidom.parseString(a)
5 tags = doc.getElementsByTagName("b")
6 for t in tags:
7 print(t.firstChild.nodeValue)
Python/minidom (last edited 2018-07-06 16:10:31 by localhost)