Hi Palani,
I'm assuming you're doing this inside a DOM document. Every element in a DOM document has the document as its owner (see the
getOwnerDocument() method) and as you've experienced, you're not allowed to add an element from another
To copy elements from a document to another, first call the
importNode() method on the target document for each node you wish to copy (use
true as the second argument).
Hope this helps,
Beno�t
[This message has been edited by Beno�t d'Oncieu (edited September 04, 2001).]