from xml.sax import make_parserfrom xml.sax import saxutilsclass SimpleHandler(saxutils.DefaultHandler): def startElement(self,name,attrs): print 'Start: ',name,attrs def endElement(self,name): print 'End: ',name def characters(self,data): print 'Data: ', repr(data)sh = SimpleHandler()p = make_parser()p.setContentHandler(sh)file = "guac.xml"p.parse(file)
Name (required)
email (will not be published) (required)
Website