SV: [jdom-interest] Large XML file

Per Norrman pernorrman at
Tue Oct 28 15:15:59 PST 2003


my experience is that a JDOM document tree is roughly
10 times the size of the XML source. At least that is
my rule-of-thumb.

Given your restrictions, this sounds like a daunting
task for an XSLT processor.

Depending on the nature of the transformation, it may be
possible to do it "programatically" in a streaming mode,
using basic SAX events. This would also be a lot faster.


PS. At least Xalan builds the entire source tree, as far
as I can understand from this

> -----Ursprungligt meddelande-----
> Från: jdom-interest-admin at 
> [mailto:jdom-interest-admin at] För Goswami, Raj
> Skickat: den 28 oktober 2003 20:59
> Till: jdom-interest at
> Ämne: [jdom-interest] Large XML file
> Hi everyone,
> Is there a way to efficiently handle very large XML files in 
> JDOM?  And also, would 5 Mb file be considered a large XML 
> file, if the system memory is 256 Mb.  We might need to 
> process multiple files concurrently, so what should be a 
> guiding rule for doing that.  We have XML files, that need to 
> be reformatted to another XML structure.  If we use XSLT, am 
> I correct to assume that the whole XML document would be in 
> memory?  What would be best way then to transform one large 
> XML structure to another XML structure. Your help is appreciated.
> Thanks, 
> Raj
> _______________________________________________
> To control your jdom-interest membership: 
uraddr at

More information about the jdom-interest mailing list