You are viewing a plain text version of this content. The canonical link for it is here.
Posted to j-dev@xerces.apache.org by Eduardo Issao Ito <it...@integrationtech.com.br> on 2000/12/11 17:20:42 UTC

How to build a DOM from SAX

I've created a class that implements XMLReader and generate SAX events 
to an internal ContentHandler.
The question is: how to create a DOM Document from this?

If the default DocumentBuilder builds the tree from SAX events generated 
from a File or InputStream, changing the source to be a custom XMLReader 
seems natural. But just looking at the javadocs I can't see how.



--
Eduardo Issao Ito <it...@integrationtech.com.br>
Integration Technologies Ltda. <http://www.integrationtech.com.br>
Rua Marina Saddi Haidar, 176
04650-050 / Sao Paulo / SP / Brasil
Phone: +55 11 5522-4848 x311
Fax:   +55 11 5524-1125