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

Re: cloneNode() and insert into another document

From: Terje Norderhaug <terje@in-progress.com>
Date: Tue, 8 Feb 2000 22:02:30 -0800
Message-Id: <b4c6af0b00021004c81a@[216.240.161.91]>
To: www-dom@w3.org
At 8:24 PM 2/8/00, Robert Rangel wrote:
>I am trying to copy a node from one document and insert it into a separate
>document tree. I tried to cloneNode(true) it and insertBefore() into the
>new document, but a DOMException with a code of "WRONG_DOCUMENT_ERROR" is
>raised. Why is this a limitation, and is there an easy perform this
>operation with standard DOM methods?
>
>I am using IBM's xml4j java parser (XERCES).

Use import-node from DOM2.

-- Terje <terje@in-progress.com> | Media Design in*Progress

   Software for Mac Web Professionals at <http://www.in-progress.com>
   Take advantage of XML with Emile, the first XML editor for Mac!
Received on Wednesday, 9 February 2000 01:00:44 GMT

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