This week's giveaway is in the EJB and other Java EE Technologies forum.
We're giving away four copies of EJB 3 in Action and have Debu Panda, Reza Rahman, Ryan Cuprak, and Michael Remijan on-line!
See this thread for details.
The moose likes Product and Other Certifications and the fly likes JAXB Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Certification » Product and Other Certifications
Bookmark "JAXB" Watch "JAXB" New topic


katragunta sreenivas

Joined: Oct 31, 2007
Posts: 1
I am trying to parse 200 MB large xml file for converting into java objects by using JAXB,then memory usage of jvm is very large,how to reduce the momory usage.

Is there any other parsers to parse the largesize xml(200 MB) other than SAX and DOM.

And also is there any other Implementations for JAXB to parse the xml files.

Please Reply to me for this ASAP.

Chandra Atla
Ranch Hand

Joined: Jul 21, 2004
Posts: 91
Hi Srinivas,

You can use StAX API, which is a pull parsing technology. With this StAX parser, you can parse large size XML files. It is already part of JDK 1.6.

The following are some useful links..

I agree. Here's the link:
subject: JAXB
Similar Threads
What to use when Applying XSL to 150Mb XML file
Parsingof XML taking time
How to Convert XSD into XML
JAXB Parsing error: The entity name must immediately follow the '&' in the entity reference