SV: [jdom-interest] Large XML file

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


Hi,

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.

/pmn

PS. At least Xalan builds the entire source tree, as far
as I can understand from this
http://xml.apache.org/xalan-j/design/design2_0_0.html.


> -----Ursprungligt meddelande-----
> Från: jdom-interest-admin at jdom.org 
> [mailto:jdom-interest-admin at jdom.org] För Goswami, Raj
> Skickat: den 28 oktober 2003 20:59
> Till: jdom-interest at jdom.org
> Ä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: 
> http://lists.denveronline.net/mailman/options/jdom-interest/yo
uraddr at yourhost.com




More information about the jdom-interest mailing list