|
Hi, I have two xml documents and I want to copy a node from one
document to another. This is the portion I want to copy. <Annotation
timestamp="15:47:24">add this on also</Annotation> <Annotation
timestamp="15:55:38">add this on also</Annotation> <Annotation
timestamp="16:07:12">add this on also</Annotation> <Annotation
timestamp="18:13:21">add this on also</Annotation> </annotations> I find the node in one document and store the
pointer in a DOMNode* node. But when I do this I get an exception newNode->appendChild(node); I get this exception: WRONG_DOCUMENT_ERR: I know I am working off two different documents, so can
someone suggest how I go about doing this. I even tried using the DOMNode* clone = node->cloneNode(true);
function and then appending te new cloned node. But got the same exception. Enda |
- Copying nodes from different documents Mannion, Enda
- Re: Copying nodes from different documents Alberto Massari
- Re: Copying nodes from different documents Gareth Reakes
