On Mar 15, 2007, at 9:46 AM, [EMAIL PROTECTED] wrote:
>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.

Not really recommended in this case. Xalan can run from a DOM, but that's mostly for use if you already have the DOM in memory; it's much less efficient than letting Xalan build its own "native" data model.
JAXP 1.4/JDK 6.0 has a new package called javax.xml.transform.stax, in which you'll find a StAXSource class [1]. Note that internally Xalan/XSLTC build a document model (DTM) from SAX events, so there's a StAX -> SAX conversion when starting from a StAXSource. Thus, depending on the parsers in question, there may be no performance advantage in using a StAXSource.

-- Santiago

[1] http://java.sun.com/javase/6/docs/api/javax/xml/transform/stax/ StAXSource.html

Reply via email to