Hi

Is a DOM always instantiated for transformation, regardless of whether the
factory is a SAXTransformerFactory or not?

I have XML files 100-200MB in size and I wish to transform and insert their
records into a DB using a  Xalan extension to perform the INSERT. I get
OutOfMemoryError, no surprise. I init the transformation with
SAXTransformerFactory and therefore use TransformerHandler, XMLReader and
write to a StreamResult.

Intuitively I envision a mode where the transformation is streaming, 'on
the fly' with the transformation output streaming out before the entire
input document has been parsed. On the other hand, my sense of reality
says, a stylesheet can not be correctly applied until the entire document
is instantiated as DOM.

Sorry if this has been discussed before - any pointers for performing
really large transformations?

Thanks, chris

Reply via email to