Win a copy of Design for the Mind this week in the Design forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

JAXB

 
katragunta sreenivas
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
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.

Thanks
Sreenivas.k
 
Chandra Atla
Ranch Hand
Posts: 91
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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..

http://java.sun.com/webservices/docs/1.6/tutorial/doc/SJSXP3.html
http://www.ibm.com/developerworks/xml/library/x-tipstx/

Thanks,
Chandra
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic