Comparing XmlDocument for equality (content wise)
Posted
by Blankman
on Stack Overflow
See other posts from Stack Overflow
or by Blankman
Published on 2010-05-27T19:46:27Z
Indexed on
2010/05/27
19:51 UTC
Read the original article
Hit count: 223
If I want to compare the contents of a XMlDocument, is it just like this?
XmlDocument doc1 = GetDoc1();
XmlDocument doc2 = GetDoc2();
if(doc1 == doc2)
{
}
I am not checking if they are both the same object reference, but if the CONTENTS of the xml are the same.
© Stack Overflow or respective owner