XML parsing besides SAX and DOM
Andrew Dalke
dalke at dalkescientific.com
Wed Dec 12 05:54:03 EST 2001
Hello,
I've been doing XML processing of a record-oriented
data set where in a record:
- the data isn't deep (pretty much flat)
- all the text is used from between the start and end tags
- the text is short (easily fits into memory)
I developed another XML API to simplify this case, and I'm
curious about other similar systems (eg, I may want to
scrap my work). I know about SAX and DOM and about RAX.
What others are there?
For full details about what I'm doing, see
http://www.biopython.org/~dalke/SimpleFields.py
Short version is I wrote an adapter from the SAX ContentHandler
to my callback-based API, then an implementation which
stores the callback events in a dictionary for random
access.
Andrew
dalke at dalkescientific.com
More information about the Python-list
mailing list