[JDEV] Question on using NIO with SAX
Iain Shigeoka
iainshigeoka at yahoo.com
Fri Mar 22 12:09:33 CST 2002
On 3/21/02 5:16 PM, "David Waite" <mass at akuma.org> wrote:
> This is an issue with the SAX Api (which understandably, we can't
> change). What you want is a push-model parser (like SAX) which takes a
> block of bytes/characters and calls events on the DocumentHandler (on
> that thread) until that block of data has been processed, then returns
> or saves the remainder until the next time it is passed. SAX does not
> define this, and anything which does this at least is extending SAX.
Yeah. The best bet is probably to tweak the SAX parser to behave this way.
I have no idea how hard this is in Xerces. A smaller parser like J Clark's
XP parser http://www.jclark.com/xml/xp/index.html may be easier to work with
being that it is a LOT smaller.
-iain
_________________________________________________________
Do You Yahoo!?
Get your free @yahoo.com address at http://mail.yahoo.com
More information about the JDev
mailing list