Comparing 2 xml nodes

  • Thread starter Thread starter XmlAdoNewbie
  • Start date Start date
X

XmlAdoNewbie

Hi All,
I am just wondering if there is a way to compare 2 XML nodes to see if
the data between them is the same? The structure of the XML nodes are
exactly the same I just want to know if the data between the two is
different and I want to do this without using XSLT or anything of that
nature, I just want to be able to compare them through code. Something
along the lines of:

XmlNode firstNode;
XmlNode secondNode;

if (firstNode != secondNode) //is the data between the nodes
different?
{
do some stuff here.
}

Thanks in advance!!
Erin
 
Back
Top