• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

JAXB

 
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
Ranch Hand
Posts: 91
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
reply
    Bookmark Topic Watch Topic
  • New Topic