[JDEV] Element stack and Asserts

Daniel Arbuckle djarb at wvc-omak.ctc.edu
Wed May 5 10:06:13 CDT 1999

On Tue, 4 May 1999 dsmith at ai.uwf.edu wrote:
> Well, I'm almost done writing an element stack to keep track of element
> "trees" as they are being built. It'll make using expat trivial. The
> stack is setup so that it has a (nearly) 1:1 correspondence with the
> expat callbacks for StartElement, CharacterData, and EndElement. It's
> pretty nifty, IMHO. :)
> I've also been putting some finishing touches on the element .c/.h
> files. I fixed it up so that everything uses const char's and strdups
> to ensure that elements release *all* the memory they use properly (at
> least, that's my goal). :)
> Once I finish up the element stack, I'm hoping to write the XMLstream
> wrapper and that'll give us a I/O source independent, incremental
> XML->DOM generator. Really, my first goal with writing this piece is to
> make it easy for people who write clients to parse the data out. It'll
> be up to them to provide the I/O source (which should be trivial).

Heh :) These three paragraphs pretty well describe my Python XMLStream 
package. Except that the interpreter takes care of memory management....

I guess I shouldn't bother porting to C when I've got it perfected. ;)


More information about the JDev mailing list