W3C home > Mailing lists > Public > www-dom@w3.org > January to March 1999

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

From: John Cowan <cowan@locke.ccil.org>
Date: Wed, 13 Jan 1999 09:38:12 -0500
Message-ID: <369CAFD4.B7EB9851@locke.ccil.org>
To: DOM List <www-dom@w3.org>
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.
> Thanks for your help

There is none.  You have to create a node in the destination document
and set the attributes one by one.

-- 
John Cowan	http://www.ccil.org/~cowan		cowan@ccil.org
	You tollerday donsk?  N.  You tolkatiff scowegian?  Nn.
	You spigotty anglease?  Nnn.  You phonio saxo?  Nnnn.
		Clear all so!  'Tis a Jute.... (Finnegans Wake 16.5)
Received on Wednesday, 13 January 1999 09:38:26 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Friday, 22 June 2012 06:13:46 GMT