import xml.dom.minidom as xml doc = xml.parse("out.xml") for childNode in doc.firstChild.childNodes: attrObject = childNode.getAttribute("kind&q