How to read a xml-file sequentially
t-weh at online.no
Wed Oct 31 17:13:19 CET 2001
I'm looking for an alternative to Pyxie, cuz. that's what I'm using now.
It's easy to use etc. but it's an extra module for users of my software to
download. My goal is to use as much of python standard-base as possible.
Thanks for the tip anyway.
"Bill Tate" <tatebll at aol.com> wrote in message
news:cb4ba455.0110310518.418e6fb5 at posting.google.com...
> "Thomas Weholt" <thomas at gatsoft.no> wrote in message
news:<BTwD7.8$Gm2.170776064 at news.telia.no>...
> > Hi,
> > I need to read a xml-file sequentially, piece by piece, when a given
> > to a given start-tag is found, the xml-data inbetween the start and end
> > sent to a different method for processing, then the next piece of data
> > read, sort of like old-school record-based files.
> > Only the needed data is kept in memory.
> > How can this be done using preferrably expat or sax? No DOM cuz the
> > are huge.
> > Thomas
> Thomas -
> Suggest you may also want to look at Pyxie.org site. One of the tools
> developed by Sean McGrath is a hybrid option. The pyxie library
> includes the capability of using event processing up to a particular
> point (a specific start tag for example) and then switch over to
> tree-like processing. Sounds like it might be relevant for your
> problem. While Pyxie doesn't seem to have a lot of activity going on
> with it right now, it does have a number of useful tools that work
> well with the gymnastics of xml processing.
More information about the Python-list