Use importNode() instead of appendNode().

----------------------------------------
Dean Roddey
Software Weenie
IBM Center for Java Technology - Silicon Valley
[EMAIL PROTECTED]



"Martin Duerig" <[EMAIL PROTECTED]> on 03/21/2000 10:22:15 AM

Please respond to [EMAIL PROTECTED]

To:   <[EMAIL PROTECTED]>
cc:
Subject:  Deep copy of node from other document



Sorry for asking novice questions: What is the best strategy to deep copy a
node from one document to another one?

I tried cloneNode(true) and the appendChild() but I get the message "wrong
document".

Cheers

Martin




Reply via email to