You should look into StAX API and its implementations. Its XMLStreamWriter is probably what you're looking for.
Cezar > -----Original Message----- > From: dg69 [mailto:[email protected]] > Sent: Wednesday, February 03, 2010 2:50 PM > To: [email protected] > Subject: File Conversion > > > I have to convert a flat file to and XML file so that a application can > load > the data on a regular basis. The flat files are huge( because of the > record > lenght and millions of records) in gigs and when I convert them I get an > out > of memory error after lets say 100,000 records. And I expected that since > this is memory based. I have added more mem to the JVM and I can get > another > 50, 000 records processeds. > Once way to avoid this is to create smaller XML files for example create > file for 50, 000 recs and then start another one. Is there a better > approach? > -- > View this message in context: http://old.nabble.com/File-Conversion- > tp27443213p27443213.html > Sent from the Xml Beans - Dev mailing list archive at Nabble.com. > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [email protected] > For additional commands, e-mail: [email protected] > --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
