This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
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


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
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: 41057
    
  43
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.
 
Similar Threads
XML parser
Parsing technique to be used for reading XML message .
parser
XML Parser
XML Parser