You are viewing a plain text version of this content. The canonical link for it is here.
Posted to j-dev@xerces.apache.org by Siddangouda Sankanagouda <go...@calific.com> on 2001/01/10 18:42:43 UTC
RE: org.w3c.dom.DOMException : How to append a node to another do
cument
Use importNode of DocumentImpl.
-Gouda
-----Original Message-----
From: Hervé Guidetti [mailto:herve.guidetti@idbsoft.ch]
Sent: Wednesday, January 10, 2001 9:28 AM
To: Xerces
Subject: org.w3c.dom.DOMException : How to append a node to another
document
Hi,
I am a neebie with DOM. So excuse for the question.
I have two documents. I want to copy a node from the document 1
(theNewNode)
and append it to a node of the document 2 (nodeToChange).
I tried this :
nodeToChange.appendChild(theNewNode);
but I get "org.w3c.dom.DOMException: DOM005 Wrong document"
Thanks for your time
Hervé
---------------------------------------------------------------------
To unsubscribe, e-mail: xerces-j-dev-unsubscribe@xml.apache.org
For additional commands, e-mail: xerces-j-dev-help@xml.apache.org