Skip to Main Content

Java EE (Java Enterprise Edition) General Discussion

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

I need help on SAXBuilder (org.jdom), SAXParser ???

843834Jan 12 2009 — edited Jan 14 2009
I need to parse 1000+ xml streams continuously one after another.
Can any one have idea about SAXBuilder (org.jdom), SAXParser?
Among these two which holds better performance in terms of memory utilization as primary criteria?
As per JDOM documentation SAXBuilder constructs a tree in memory.
I've tried by parsing 100 files one after another each of size 3MB.
SAXBuilder consumed less memory comparatively SAXParser I thought SAXBuilder utilized more memory because it has to construct a tree in memory. I could not able to identify reason for this.

Finally my requirement is to parse 1000 + with less memory utilization.
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Feb 11 2009
Added on Jan 12 2009
4 comments
450 views