Win a copy of Succeeding with AI this week in the Artificial Intelligence and Machine Learning forum!
  • 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 all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Paul Clapham
  • Ron McLeod
  • Liutauras Vilda
  • Junilu Lacar
Sheriffs:
  • Tim Cooke
  • Jeanne Boyarsky
  • Knute Snortum
Saloon Keepers:
  • Stephan van Hulst
  • Tim Moores
  • Tim Holloway
  • Carey Brown
  • Piet Souris
Bartenders:
  • salvin francis
  • fred rosenberger
  • Frits Walraven

JAXB

 
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
 
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
 
Get meta with me! What pursues us is our own obsessions! But not this tiny ad:
Thread Boost feature
https://coderanch.com/t/674455/Thread-Boost-feature
    Bookmark Topic Watch Topic
  • New Topic