You can also clone the entire document, which is _much_ easier:
DOM_Document newDoc = static_cast<const
DOM_Document&>(oldDoc.cloneNode(true));
Dave
"Erik Rydgren"
<erik.rydgren@man To: <[EMAIL PROTECTED]>
darinen.se> cc: (bcc: David N
Bertoni/Cambridge/IBM)
Subject: RE: DOM_Document
problem...HELP REQUIRED URGENTLY
02/22/2002 01:36
AM
Please respond to
xerces-c-dev
You will have to create a new document and then copy nodes from the
original
document by importing them into the new document.
Regards
Erik Rydgren
Mandarinen systems AB
Sweden
-----Original Message-----
From: Ravi_Jain [mailto:[EMAIL PROTECTED]]
Sent: den 22 februari 2002 07:16
To: [EMAIL PROTECTED]
Subject: RE: DOM_Document problem...HELP REQUIRED URGENTLY
Sensitivity: Confidential
> Hi All
> I am passing reference of DOM_Document to a function where I am
modifying
> the DOM_Document and hence the DOM_Document change is reflected in my
main
> program
I have tried same by first copying original DOM_document
instance to
another variable and passed this variable to my function.
But in this case when I refer to my original DOM_Document in main program
after making function call , I can see the changes that my fuction should
have done ..
Is there any way to clone DOM_Document or any other way to solve this
problem..
> Thanks in Advance
> With Warm Regards
Ravi Jain
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]