[jdom-interest] size limitation on XML file?

Chris B. chris at tech.com.au
Mon Jun 28 19:09:18 PDT 2004


Kathy Huo wrote:

> Is there a limitation on the size of the XML file to be processed?


No, but Java normally limits memory. You can increase the allocation by 
passing an argument to the Java virtual machine (-mx if memory serves 
me). But ultimately, if you have big files to process, jdom is probably 
a bad way to go, and you should use something streaming like SAX.


> I had my application hang on SAXBuild.build() function call on a XML 
> file of 60MB. It worked after I reduced the file to 40MB.
>  




More information about the jdom-interest mailing list