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
Register / Login
JavaRanch » Java Forums » Engineering » XML and Related Technologies
Reply 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://ej-technologies/jprofiler - if it wasn't for jprofiler, we would need to run our stuff on 16 servers instead of 3.
 
subject: parsing XML file without loading it
 
Similar Threads
DOM Parser
XML parsers to garbage collect the part of the xml which is parsed
XPATH in Java
Adding attributes to root tag
Read large xml file for searching