Something besides just adding your own method into the handler? Ex:
MySAXHander extends blahblahblah
public Object getData()
Once you have it out of the handler, you can look at the docs for PersistantObject storage of data. It's pretty straightforward.
(It's late so perhaps I'm not understanding the question).
Originally Posted by christiand
If the title is too brief...
With the help of these forums (in particular richard.pluckett and jfisher's responses) I successfully parsed an xml file received through an http request.
SAXParserFactory spf = SAXParserFactory.newInstance();
SAXParser parser = spf.newSAXParser();
MySAXHandler handler = new MySAXHandler();
Now the handler I wrote parses it all properly, however I don't understand how to save this data. I have the handler class creating other objects to hold this data once the entire document has been read, but I don't see how to logically access these objects once the parse method is over. They're just floating around in memory with no way to reference them.
I hope expressed my need properly, let me know if you want a detailed explanation other than "what do I do with the xml data I just parsed so that the rest of my application has complete access to it".