[prev in list] [next in list] [prev in thread] [next in thread] 

List:       xmlbeans-dev
Subject:    RE: File Conversion
From:       Cezar Andrei <cezar.andrei () oracle ! com>
Date:       2010-02-03 23:49:19
Message-ID: 750faea1-2c62-4a6f-8035-3e3e4136c674 () default
[Download RAW message or body]

You should look into StAX API and its implementations. Its XMLStreamWriter is probably what you're looking for.

Cezar

> -----Original Message-----
> From: dg69 [mailto:deepanjan_ganguly@bcbsok.com]
> Sent: Wednesday, February 03, 2010 2:50 PM
> To: dev@xmlbeans.apache.org
> 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: dev-unsubscribe@xmlbeans.apache.org
> For additional commands, e-mail: dev-help@xmlbeans.apache.org
> 

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@xmlbeans.apache.org
For additional commands, e-mail: dev-help@xmlbeans.apache.org


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic