Re: [Sax-devel] Should I use sax?
Brought to you by:
dmegginson
From: David M. <dav...@gm...> - 2006-05-22 21:13:26
|
On 22/05/06, Michael Glavassevich <mrg...@ca...> wrote: > If you're writing new code, I would avoid using Xerces' native > serializers. They are non-standard, not particularly well maintained and > likely to be deprecated [1] soon (perhaps in the next release). JAXP's > TransformerHandler [2] is a much better choice for serializing SAX events= . Speaking of new code, I should mention that another option is to use StAX instead of SAX. Like SAX, StAX is a streaming API, so in theory, it should be as efficient as SAX (I haven't run side-by-side tests). However, since StAX is a pull parser, it leaves you in control of the central loop instead of having to write event handlers. Here's an intro: http://www.xml.com/pub/a/2003/09/17/stax.html StAX also covers writing. Does anyone know how stable and efficient current StAX implementations are? All the best, David --=20 http://www.megginson.com/ |