wood burning stoves 2.0*
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: 12681
The XML and related technologies forum is the place for this question.
I agree. Here's the link: http://aspose.com/file-tools
subject: parsing huge xml files
Similar Threads
How to output to an xml file after parsing
XML processing
Sending an arraylist object
Out of memory error when opening an XML of size 18 MB
Sending a large XML file and an ArrayList