#Loading an XML Document from xml.dom import minidom xmldoc = minidom.parse('binary.xml') print xmldoc print xmldoc.toxml()