I've got a DOM tree I want to receive org.xml.sax.helpers.DefaultHandler callbacks from it. Is that possible?
2 Answers
There should be support for this in the Transformer API, by using a DOMSource and a SAXResult
Comments
A SAX parser parses an XML document into a stream; a DOM parser parses an XML document into a tree. You've got an already-parsed document, so presumably you also have the underlying document. You can of course reparse that.
1 Comment
milan
maybe I've built a DOM tree at run-time and I want to process it using SAX callbacks because I've already got working code for that?