import sysfrom xml.parsers import expatdef start_element(name,attrs): print 'Start:', name, attrsdef character_data(data): print 'Data:', repr(data)def end_element(name): print 'End: ', namep = expat.ParserCreate()p.StartElementHandler = start_elementp.EndElementHandler = end_elementp.CharacterDataHandler = character_datap.ParseFile(open(sys.argv[1]))
Name (required)
email (will not be published) (required)
Website