Win a copy of Functional Reactive Programming this week in the Other Languages forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Huge Xml File Parsing

 
pamir sonmez
Ranch Hand
Posts: 47
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Normally, I was using jaxb to parse xml file into java objects.
However, now I have some heap problems

There are some files greater than 1GB.
Which library can I use for this?

I found some examples, tutorials and suggestions about vtd-xml, stax api, etc.
But I wonder your experiences and suggestions.

thanks in advance
 
Ulf Dittmer
Rancher
Posts: 42968
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
SAX or StAX should work in that case, as they don't need the entire file in memory.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic