import xml.dom.minidom, sys file = xml.dom.minidom.parse(sys.argv[1]) print file