aspose file tools*
The moose likes XML and Related Technologies and the fly likes Best Parser for extracting data from XML. 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 "Best Parser for extracting data from XML." Watch "Best Parser for extracting data from XML." New topic
Author

Best Parser for extracting data from XML.

Sakthi Ramasamy
Greenhorn

Joined: Jun 02, 2008
Posts: 17
I have very large XMLs which has huge chunk of data. Which parser is best to use for processing and retrieval of the data? I tried with DOM but it is throwing Heap Memory Exception. The XML Files are more than 8 MB. Is Castor API a better one to try out?
Ulf Dittmer
Marshal

Joined: Mar 22, 2005
Posts: 42634
    
  65
Take a look at SAX - it uses less memory than any of the DOM-like APIs.


Ping & DNS - my free Android networking tools app
 
 
subject: Best Parser for extracting data from XML.