W3C home > Mailing lists > Public > www-dom@w3.org > October to December 2000

Re: Copying from one DOM to another

From: Morten Nedertoft <mmn@pr-group.sdu.dk>
Date: Fri, 10 Nov 2000 09:20:54 +0100
Message-ID: <3A0BAFE6.98C035E2@pr-group.sdu.dk>
To: www-dom@w3.org
Joseph Kesselman/Watson/IBM wrote:

> NEW: How do I move a Node from one document to another?
>      Neither Level 1 nor Level 2 allow you to move a Node from one document
> to another, although Level 2 has
>      an importNode method which allows you to copy a Node from one document
> to another. 

I'm new to DOM.
1) I don't understand why a document has to own all nodes it can

2) If I get a reference to DOM document, what should I do to be certain
that the changes I do, don't reflects in the original data structure?
Should I use importNode (to a memory-only document) or cloneNode?

thanks in advance.
Morten Nedertoft
Received on Friday, 10 November 2000 03:20:13 UTC

This archive was generated by hypermail 2.3.1 : Tuesday, 20 October 2015 10:46:07 UTC