Jaxb to generate the XML directly to the OutputStream

Posted by sonu on Stack Overflow See other posts from Stack Overflow or by sonu
Published on 2010-05-13T20:59:08Z Indexed on 2010/05/13 21:04 UTC
Read the original article Hit count: 215

Filed under:

Hi, I have a 500Mb csv file. I need to convert it into XML file.
I am using the Jaxb to created the xml file. It is working fine for small amout of data.
but for large amout of data like 300 mb it is throwing out of memory exception.
Can anyone tell me that How can I create each element and write it into a file
without creating the whole tree using the jaxb?"

Thanks Sonu

© Stack Overflow or respective owner

Related posts about java