aspose file tools*
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
Author

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
Marshal

Joined: Mar 22, 2005
Posts: 41863
    
  63
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
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Huge Xml File Parsing