This week's book giveaway is in the OO, Patterns, UML and Refactoring forum.
We're giving away four copies of Refactoring for Software Design Smells: Managing Technical Debt and have Girish Suryanarayana, Ganesh Samarthyam & Tushar Sharma on-line!
See this thread for details.
The moose likes Java in General and the fly likes parsing huge xml files Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

JavaRanch » Java Forums » Java » Java in General
Bookmark "parsing huge xml files" Watch "parsing huge xml files" New topic

parsing huge xml files

Preetham Chandrasekhar
Ranch Hand

Joined: Nov 05, 2003
Posts: 98
what is the best way of parsing xml files in java? is SAX still the best way of parsing huge files...I know DOM is a bummer...any comments?

"In theory, there is no difference between theory and practice. But, in practice, there is."<br /> - Jan L.A. van de Snepscheut
Preetham Chandrasekhar
Ranch Hand

Joined: Nov 05, 2003
Posts: 98
actually modifying my question....

parsing AND MODIFYING a huge xml file...whats the best? SAX, STAX or DOM?
Asim Ali

Joined: Nov 05, 2003
Posts: 26
I think in ur case the best and easiest way is to use JAXB.
William Brogden
Author and all-around good cowpoke

Joined: Mar 22, 2000
Posts: 12999
The XML and related technologies forum is the place for this question.
I agree. Here's the link:
subject: parsing huge xml files
jQuery in Action, 3rd edition