I am trying to accomplish the following:
- load a document (done)
- go trough the document depth first and use a DefaultHandler from JDK to do some work
The reason I want to do this is that I already have my handler, and now I am using it with a SAX parser. I now want to use the handler on the in-memory document.
Note that this is useful in the following way: I have to use the handler multiple times. For large documents I want to use SAX, for small I want to use the internal representation.
Thanks!