How to compare 2 xml files in C#.net and need to compare only nodes..not values
load the file in xml doc and than
if (doc.InnerXml.Length != doc2.InnerXml.Length)
Xdoc1 and Xdoc2 are the XML's you want to compare and nodesnotfound gives you the list of nodes from xdoc1 not found in xdoc2.
I just wrote few lines quickly...test it properly.
List<string> nodesnotFound = new List<string>();
bool nodefound = false;
foreach (XmlNode xnode1 in xdoc1)
foreach (XmlNode xnode2 in xdoc2)
if (xnode1.Name == xnode2.Name)
nodefound = true;
nodefound = false;
Regards,NISHIL MCT,MCTS | Freelance BizTalk Consultant.biztalkconnect.blogspot.com