Comparing 2 DOM objects

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

I have a scenario, wherein I've loaded 2 XMLDocument objects with 2 different
XML Strings. Apart from traversing down through the DOM, is there any way I
can compare whether the XML's within these DOM objects are identical?

Here's the piece of code that I hvae written as yet:

Dim domTestReqXML As XmlDocument
Dim domGenReqXML As XmlDocument

domTestReqXML = New XmlDocument
domGenReqXML = New XmlDocument

domGenReqXML.LoadXml(strGenReqXML)
domTestReqXML.LoadXml(strTestReqXML)

Here I do not have a .Compare or .Equals option with the DOM. Is there some
other way to do this, save for parsing it?

Cheers!
Nick
 
Back
Top