This looks like a mission for XPath, so as an alternative to minidom, you may use ElementTree, whose findall
method can find all elements with a Value
attribute.
import xml.etree.ElementTree as ET
doc = ET.parse(path_to_xml_file)
values = doc.findall('.//*[@Value]')
print [value.get('Value') for value in values]
For Python 2.6.6, ElementTree is unable to look for attributes, so you must use something else. There must be a xmlns:Game
pseudo-attribute at the beginning of the file; copy its value in a xmlns
variable, and try the following.
import xml.etree.ElementTree as ET
xmlns = # the value of xmlns:Game
doc = ET.parse(path)
values = doc.findall('.//Game:Value', namespaces={'Game': xmlns})
print [value.get('Value') for value in values]