If I want to compare the contents of a XMlDocument, is it just like this?
XmlDocument doc1 = GetDoc1(); XmlDocument doc2 = GetDoc2(); if(doc1 == doc2) { }
A simple way could be to compare OuterXml.
OuterXml
var a = new XmlDocument(); var b = new XmlDocument(); a.LoadXml(""); b.LoadXml(""); Debug.Assert(a.OuterXml == b.OuterXml);