from xml.dom import minidom xmldoc = minidom.parse('binary.xml') reflist = xmldoc.getElementsByTagName('ref') print reflist print reflist[0].toxml() print reflist[1].toxml()
Name (required)
email (will not be published) (required)
Website