Problemas con conversion JAXP

"perverse64" <perverse64-/[email protected]>
Newsgroups gmane.comp.java.javaspain
Message-ID <[email protected]>
Hola Listeros!

tengo una aplicacion que realiza la transformacion de archivos 
xml a html basado en un xsl mediante JAXP, en un servlet.

el problema es que cuando el xml es muy grande (aprox 15 Mb)
causa un error de 'Out of Memory'.

hay alguna manera de ir direccionando la salida a la pantalla
mientras procesa todo el archivo aun que en la pantalla haya solo
informacion parcial o alguna manera de optimizar el buffer de la
conversion

basicamente el punto central del servlet es el siguiente

...
PrintWriter out = response.getWriter();

factory = TransformerFactory.newInstance();
result = new StreamResult(out);

transformer = factory.newTransformer(new StreamSource(xslFile));
transformer.transform(new StreamSource(xmlFile), result);



Espero su valiosa respuesta!!
saludos
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.