aspose file tools*
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


Win a copy of The Java EE 7 Tutorial Volume 1 or Volume 2 this week in the Java EE forum
or jQuery UI in Action in the JavaScript forum!
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.
 
jQuery in Action, 2nd edition
 
subject: parsing XML file without loading it