• 0

[C#/.Net] Creating copy of an XML document


Question

I have an XmlDataDocument and want to create a copy of it so that I have two seperate objects. However when I do the following I get what is essentially two pointers to the same document (confirmed by doing a ReferenceEquals call)

XmlDataDocument xml2 = xml1;

So the question is how can I create a second xml document from the first?

Link to comment
Share on other sites

1 answer to this question

Recommended Posts

This topic is now closed to further replies.
  • Recently Browsing   0 members

    • No registered users viewing this page.