Hi all,
I'm very new to all this DOM and SAX and XML stuff, so I apologize if this is a dumb question.
Here is what I need to do: I am creating a Document with SAX, just like it says:
SAXReader reader = new SAXReader();
Document document = reader.read(url);
But, what I would like to do is look for certain elements as the stream is being parsed so that I can save their values. I don't know their exact location in the XML, so can't use XPATH on the created Document, and don't want to take the performance hit of searching for them inside the Document.
So my question: is there a way to hook something up to the SAXReader so when it hits a certain XML element it calls me back and I can save off the value?
Thanks in advance for any help!
Olia