from xml.dom import minidom xmldoc = minidom.parse('binary.xml') print xmldoc print xmldoc.childNodes print xmldoc.childNodes[0] print xmldoc.firstChild