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