You can try use the DOMWriter which will take any dom4j document and create a W3C DOM implementation, using any JAXP W3C DOM provider.

There's also DOMDocumentFactory that you can use and set on the SAXReader via the setDocumentFactory() method and everything will just work.
 
James
----- Original Message -----
Sent: Friday, April 26, 2002 7:27 PM
Subject: [dom4j-user] I just want a DOMDocument

This is probably a painfully simple question, but bear with me. :)
 
I'm starting to use dom4j, and I want to parse an xml file, returning a org.dom4j.dom.DOMDocument object.  From the javadocs and the quickstart guide, I can easily see how to return a org.dom4j.Document object, but I need the functionality of the DOMDocument.  I know that the DOMDocument implements the Document interface - can I just cast the returned Document to a DOMDocument?  Is it already returning a DOMDocument and I just don't know?  I feel pretty stupid here, 'cause I couldn't find the answer in the old posts either.
 
Thanks in advance.
 
John Fletcher

Reply via email to