Mikael Jansson schrieb am 20.11.2008 um 21:31:36 (+0100):
> 
> But, when the files gets to big, I run out of memory. OutOfMemoryError
> - java heap space.
> 
> If I use the incremental feature I can transform documents of about
> 200MB, whit out it a few MB.
> 
> Is there any way I can resolve this? I need to transform XML-fils up
> to 4GB.
> 
> I have tried to expand the java heap with java -XmxXXXM but it's not
> sufficient. There has to be a way for the parser to only process one
> node at a time, deleting the old ones.

Hand-wrought SAX filter preprocessing, as suggested by others.

Or maybe the streaming features of Saxon-SA (commercial version) are
helpful in your situation.

http://www.saxonica.com/documentation/sourcedocs/serial.html

Michael Ludwig

Reply via email to