How would you compare two XML Documents?

Microsoft has an XML diff API that you can use.

Unofficial NuGet: https://www.nuget.org/packages/XMLDiffPatch.


I googled up a more complete list of solutions of this problem today, I am going to try one of them soon:

  • http://xmlunit.sourceforge.net/
  • http://msdn.microsoft.com/en-us/library/aa302294.aspx
  • http://jolt.codeplex.com/wikipage?title=Jolt.Testing.Assertions.XML.Adaptors
  • http://www.codethinked.com/checking-xml-for-semantic-equivalence-in-c
  • https://vkreynin.wordpress.com/tag/xml/
  • http://gandrusz.blogspot.com/2008/07/recently-i-have-run-into-usual-problem.html
  • http://xmlspecificationcompare.codeplex.com/
  • https://github.com/netbike/netbike.xmlunit