File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
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

parsing XML file without loading it

ali haider
Ranch Hand

Joined: Feb 05, 2005
Posts: 61
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...


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.
subject: parsing XML file without loading it
It's not a secret anymore!