dev@jaxb.java.net

Marshalling Large data into xml

From: deepak_scs <deepak_at_swamicyber.com>
Date: Wed, 21 Oct 2009 07:03:48 -0700 (PDT)

I am using JAXB and I have a large set of data which i have to marshal into a
xml.Since marshalling the whole thing into xml in a single step will be
using most of the memory , i want to split it into parts and write to the
xml file incremently

For example if my generated output xml should be like this:
<Employees>
<employee>......</employee>
<employee>.....</employee>
<employee>.....</employee>
<employee>.....</employee>
..
...
..
</Employees>

I would like to write the <employee> sections separately into a file instead
of writing the whole thing together.I am retrieving the employee details
from the database and converting to xml.There are almost 8 lakh records.So
marshalling the whole thing in single step will use up my memory.How can i
do it?????

Thanks
-- 
View this message in context: http://www.nabble.com/Marshalling-Large-data-into-xml-tp25993157p25993157.html
Sent from the java.net - jaxb dev mailing list archive at Nabble.com.