
Parsing an XML document in Python is easy. Below is a simple example that loads an XML document from a file, parses and prints:
from xml.dom import minidom
dom = minidom.parse('test.xml')
print dom.toxml()
For more information, see the Python minidom documentation.
