wood burning stoves*
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
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: 42648
SAX or StAX should work in that case, as they don't need the entire file in memory.

Ping & DNS - my free Android networking tools app
wood burning stoves
subject: Huge Xml File Parsing