|
Hi
Malcom,
I think this problem was because of
adding or deleting or modifying of node n1 which belongs to DOM1 to DOM2 .
You need to import the node first then only u can add to
DOM2.
If you still have problem then send me the piece
of code which is raising exception.
regards,
Sridhar.
Hi,
I'm having trouble (in the form of DOM005 and
DOM006 errors) trying to pretty well clone most of a document. In
particular if I have a document like this (ignoring the processsing
instructions, DOCTYPE etc):
<root_element>
<header>
<action>ADD</action>
... (a defined hierarchy)
</header>
<body>
.. (a defined hierarchy)
</body>
</root_element>
and I want to duplicate all the elements within
the same document, changing the <action> value to say CHANGE for the
second set, as follows:
<root_element>
<header>
<action>ADD</action>
... (a defined hierarchy)
</header>
<body>
.. (a defined hierarchy)
</body>
<header>
<action>CHANGE</action>
... (a defined hierarchy)
</header>
<body>
.. (a defined hierarchy)
</body> </root_element>
How can I do this? I've tried various
combinations of cloneNode etc but always get either DOM005 Wrong document,
DOM006 Hierarchy request error or some other error.
By the way I'd like to know how to do this with
DOM 1 and DOM 2.
Any help much appreciated.
--malcolm
|
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]