2

I've got a DOM tree I want to receive org.xml.sax.helpers.DefaultHandler callbacks from it. Is that possible?

2 Answers 2

2

There should be support for this in the Transformer API, by using a DOMSource and a SAXResult

Sign up to request clarification or add additional context in comments.

Comments

0

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

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?

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.