= Python minidom = * https://docs.python.org/2/library/xml.dom.minidom.html Minidom - Minimal DOM implementation DOM (Document Object Model interface) == XML parse with minidom == {{{#!highlight python from xml.dom import minidom print("Hello world") a="aaaabbcc" doc = minidom.parseString(a) # return document tags = doc.getElementsByTagName("b") for t in tags: print(t.firstChild.nodeValue) print( doc.toprettyxml() ) }}}