File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/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
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.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: parsing XML file without loading it
 
Similar Threads
Adding attributes to root tag
Read large xml file for searching
DOM Parser
XPATH in Java
XML parsers to garbage collect the part of the xml which is parsed