Converting org.dom4j.Document into org.w3c.dom.Document
843834Aug 10 2005 — edited Jun 21 2006Can somebody help me with a code segment describing, how to convert a org.dom4j.Document into org.w3c.dom.Document.
I already tried the following, but it doesnot work
ByteArrayInputStream bytearrayinputstream = new ByteArrayInputStream(dom4jDoc.asXML().getbytes());
InputSource inputsource = new InputSource(bytearrayinputstream);
Document document = null;
try
{
document = DocumentBuilderFactory.newInstance().newDocumentBuilder().parse(inputsource);
dom4jDoc is an org.dom4j.Document & document is of type org.w3c.dom.Document.
Please help