|
I would recommend taking a look at Xineo OAX, a SAX-based XML parsing API that relies on principles that are close to STX : an OAX parser is defined by a set of (reusable) "handlers" that match given element names, and may embed "sub-handlers". The result is a hierarchical and object-oriented handler-set that will parse the corresponding document schema. But the actual parsing process remains event-based, and won't load the entire document into memory. This is free software available at http://xineo.sf.net/oax. |