Hi,

I would like to duplicate completely a DOM_Document in another
DOM_Document.
I tried the following code, but I have an exception in the appendChild
(error Code=4: WRONG_DOCUMENT_ERR)

            const DOM_Document theDOM = xmlParser->getDocument();
            DOM_Document theDOM2 = theDOM.createDocument();
            DOM_Node tstnod = (theDOM.getDocumentElement
()).cloneNode(true);
            theDOM2.appendChild(tstnod);

Can someone indicate me how to perform this full copy ?

Thanks a lot.

-richard marsot
[EMAIL PROTECTED]



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to