Write large files
"Harter Damien" <[email protected]> Wed, 20 Oct 2010 14:07:32 +0200
| Newsgroups | gmane.text.xml.xmlbeans.user |
|---|---|
| Message-ID | <5765_1287576453_4CBEDB85_5765_343611_6_36F33B8D5CECB34F890B537D2D91EBDE01A51A75@WBE11.ancy.fr.sopra> |
Hi to everyone. I'm facing an OutOfMemory exception because the XML files I want to write is too large, so I have to handle in memory too much XML objects (generated from the XSD using XMLBeans 2.2.0). The use of Xms and Xmx parameters is a good workaround, but I'd like to implement a stronger solution (in case of my file becomes larger !). Is there a way to flush a part of XMLObjects into the XML file so that I can free memory of marshalled objects and instanciate new ones ? Or XMLBeans allows only "one-shot" operation ? Thx a lot. Damien.