File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/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: 41621
    
  55
Take a look at SAX - it uses less memory than any of the DOM-like APIs.


Ping & DNS - my free Android networking tools app
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: Best Parser for extracting data from XML.