usock = urllib.request.urlopen('http://www.example.com/file.xml')
xmldoc = minidom.parse(usock)
for element in xmldoc.getElementsByTagName('data'):
    pass
In Python - Parsing a response xml and finding a specific text vaule