Hello,
How can one copy an XmlDocument "A" into another
XmlDocument "B"
When I say "copy", I mean to replace the XmlDocument "A"
completely by the XmlDocument "B". I am trying to use
cloneNode method of the XmlDocument but somehow I am
getting multiple copies of the same node.
Does the cloneNode replaces the XmlDocument completely or
it adds nodes to the existing XmlDocument?
Can anyone please help me out?
Thanks in advance.
Johan De Paepe - 27 Oct 2003 16:24 GMT
Why don't you just load the XML document in memory, make changes that are
needed, then before you use the XmlDocument.Save method, you check if the
xmldocument is still there, and if it is, remove it. then save your Document
with the same name?
CloneNode just makes a copy of a selected node.
Johan De Paepe
> Hello,
>
[quoted text clipped - 12 lines]
>
> Thanks in advance.