--- [EMAIL PROTECTED] wrote:

> 
> > Is it possible to use xalan with a pull parser
> like Woodstox?
> 
> Possible? I'm not familiar with Woodstox, but I
> think it could be done.
> 
> Easy? No, unless someone has already written the
> needed code and I missed
> the announcement.

Fortunately, someone (ok ok, that was me!) has indeed
written something to allow easy (I think) integration.
Let's consider this an announcement. ;-)

Starting with the oldest method, one could use a DOM
builder I wrote a year ago or so, to get a DOM tree,
on which to operate.
I haven't extensively used it, but it should work, and
is available from:

http://woodstox.codehaus.org/StaxMisc

(there's also JDom builder which could be used to go
via JDom).

But even better, as of Woodstox 3.2, Woodstox also
happens to natively implement SAX API (it also
implements JAXP interface, so it might be possible to
even hook it as the default SAX parser for Xalan to
use), alongside with Stax.

I'd be interested in learning how well that works -- I
know that it passes SAXTest pretty well, but that's
not quite the same as people using it succesfully on
regular basis. So if you use it, please let me know
how it goes.

Hope this helps,

-+ Tatu +-



 
____________________________________________________________________________________
It's here! Your new message!  
Get new email alerts with the free Yahoo! Toolbar.
http://tools.search.yahoo.com/toolbar/features/mail/

Reply via email to