Re: XML parsing with python

2009-08-18 Thread inder
On Aug 18, 11:24 am, Stefan Behnel wrote: > inder wrote: > > On Aug 17, 8:31 pm, John Posner wrote: > >>> Use the iterparse() function of the xml.etree.ElementTree package. > >>>http://effbot.org/zone/element-iterparse.htm > >>>http://codespeak

Re: XML parsing with python

2009-08-17 Thread inder
On Aug 17, 8:31 pm, John Posner wrote: > > Use the iterparse() function of the xml.etree.ElementTree package. > > >http://effbot.org/zone/element-iterparse.htm > >http://codespeak.net/lxml/parsing.html#iterparse-and-iterwalk > > > Stefan > > iterparse() is too big a hammer for this purpose, IMO. H

XML parsing with python

2009-08-17 Thread inder
Hi All, I am new to xml . I need to parse the xml file . After reading and browsing on the web , I could get much help . I guess SAX would be better suited for my requirement . Could some juct provide me a sample python code so that I can execute it and see how the parsing actually happens . Le