Re: Is there a method to copy a node from one document to another

Christophe Ney wrote:
> 
> I am using the DOM with java servlets and I couldn't find any method
> to copy a node from one document to another document.

As has been noted before, DOM itself does not support such a method.

It being a useful thing to be able to do, however, several versions
of DOM support extensions which enable this.  In particular if you
use Sun's package, the "com.sun.xml.XmlDocument.changeNodeOwner()"
method lets you do that.  Of course, this won't work if you're trying
to mix DOM nodes from multiple implementations.

- Dave

Received on Thursday, 14 January 1999 20:12:08 UTC