This week's book giveaway is in the Mac OS forum.
We're giving away four copies of a choice of "Take Control of Upgrading to Yosemite" or "Take Control of Automating Your Mac" and have Joe Kissell on-line!
See this thread for details.
The moose likes XML and Related Technologies and the fly likes parsing XML file without loading it 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 "parsing XML file without loading it" Watch "parsing XML file without loading it" New topic
Author

parsing XML file without loading it

ali haider
Ranch Hand

Joined: Feb 05, 2005
Posts: 61
Hi,
is there any way to parse a Xml file without loading it in the memory... like I have a huge file I want to parse.Now laoding it in the memory might be bulky. I have to do some massaging also on the file. That I can do by loading the file in chunks. any way I can do the parsing ?? sounds not possible.. but just wanted to ask in case some one has an idea...

thanks,
abhi


A Professional is one who can work best when he doesn't feel like it!
Bajji Pat
Ranch Hand

Joined: Apr 05, 2005
Posts: 50
Parsing the file using a SAX parser would not load it onto the memory.
U can try using one.
 
GeeCON Prague 2014
 
subject: parsing XML file without loading it