This week's book giveaway is in the Jobs Discussion forum.
We're giving away four copies of Java Interview Guide and have Anthony DePalma on-line!
See this thread for details.
The moose likes XML and Related Technologies and the fly likes Huge Xml File Parsing Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Java Interview Guide this week in the Jobs Discussion forum!
JavaRanch » Java Forums » Engineering » XML and Related Technologies
Bookmark "Huge Xml File Parsing" Watch "Huge Xml File Parsing" New topic

Huge Xml File Parsing

pamir sonmez
Ranch Hand

Joined: May 31, 2010
Posts: 47
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

Joined: Mar 22, 2005
Posts: 42965
SAX or StAX should work in that case, as they don't need the entire file in memory.
I agree. Here's the link:
subject: Huge Xml File Parsing
It's not a secret anymore!