[jdom-interest] Manipulating a very large XML file

Elias Ross eross at m-Qube.com
Thu Jan 20 17:49:10 PST 2005


On Thu, 2005-01-20 at 14:37, Srinivasan Pillai wrote:

> Hi all,
> 
> We have a large XML file (around 5 GB) that should be modified based on
> certain business rules. What parser can be used other than DOM ? Is it
> possible to  create a tree structure just for the segment that should be
> modified ?

I would use an XML Pull Parser.  I wrote one before they were
fashionable for working with large documents over the network.

http://www.xmlpull.org/

Unfortunately modification would require the data to be copied once
again.

You can use external entities and import them into your XML document.





More information about the jdom-interest mailing list