For the purposes of unit testing, I would like to validate that two xml files contain the same data, but ignore the order of the elements or attributes.
I am currently using MbUnit.Framework.Xml.XmlAssert.XmlEquals, and it seems to have a few options but I can’t find any documentation. It returns false if the element order is different.
This is a c# project.
Try using Microsoft’s XML Diff and Patch Tool.
In addition to the XML Diff and Patch API, you may be interested in taking a look at the Windows Forms code sample that implements the tool – XML Diff and Patch GUI Tool (The API’s dll is included in this download).