Forming DOM during transform process 2003-06-10 - By Leone, James
This is a question for somebody on the list that is familiar with the internals of the transformation process.
javax.xml.transform.Transformer.transform(Source, Result) receives the xml input via a source. There are several types of Source implementations (DOMSource, SAXSource, StreamSource).
Is a transform more efficient when using a particular Source implementation?
I have an application which produces xml, transforms it, and spits out the results. Is it more efficient to build this xml with a Document (which uses DOMSource during transform) or print it into a Buffer (and use StreamSource during transform).
I'm sure this problem has been faced a hundred times.
Thanks,
James Leone
|
|