This answer is clearly correct according to the DOM spec.

But some implementations have a quirk (bug!) in importNode such that it will
produce a bad document when the imported node was built by a different
parser from that of the importing document.  I think I ran into this in a
situation where the importing document was built by xerces PSVI DOM (I can't
remember which version, probably 2.1.0) and the imported node was built by
the Crimson parser.  I'm not sure I can reproduce the conditions under which
this occurred, as both xerces and the software that used Crimson have
changed.

Jeff

----- Original Message -----
From: <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]>
Sent: Thursday, January 30, 2003 5:21 AM
Subject: AW: DOM005 Wrong Document Error during transformation


Hi,
the 2 Documents are just linked to a third (new) one. You still have
2 Documents. Use importNode to "copy" the 2 Documents into the new one:

just appending the elements is not enough, try to use:
...

Reply via email to