Joseph,

Is there a good example of the preferred way to do 1.? It seems like you can
either:

A) Create a SAXSource, which requires an XMLReader and a file or stream;

or

B) Use a TemplatesHandler and then get the Templates object which is passed
into your SAXParser as a ContentHandler.

Which do you think is better? Any example code would be most appreciated.

Also, one other comment. I have certain instances where I am using one XSLT
Transformer to go against a frequently changing source document, so in that
case I use DOM (which seems correct as I constantly change the DOM and then
re-do the transformation). Is this a correct assumption?

Thanks,

Cory

-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Sent: Monday, July 16, 2001 8:36 AM
To: [EMAIL PROTECTED]
Cc: [EMAIL PROTECTED]
Subject: RE: Speed?



>1. XML file --> SAX parser --> SAX Source --> Xalan
>2. XML file --> DOM parser --> DOM Source --> Xalan
>Which approach will be faster, or less memory?

At this time, I think #1 will win on both counts.


Reply via email to