a library to compare xml documents (or nodes) and get a list of differences.
I'll archive this project. I started it because I did not do enough research in the first place.
If someone comes here in need of a good XML comparer, please consider using https://github.com/BrutalSimplicity/XmlDiffLib
using nuget:
Install-Package XmlComparer
dotnet add XmlComparer
paket add XmlComparer
See also the [local documentation][documentation] and [api][api]
var left = new XmlDocument();
left.Load("C:\temp\demo1.xml");
var right = new XmlDocument();
right.Load("C:\temp\demo2.xml");
var comparer = new XmlComparer.Comparer(
ignoreAttributeOrder: true,
ignoreNamespace: true)
var differences = comparer.GetDifferences(left, right);
XmlComparer follows the Contributor Covenant Code of Conduct.
We accept Pull Requests.
Small note: If editing the Readme, please conform to the standard-readme specification.
This project follows the all-contributors specification. Contributions of any kind welcome!
Thanks goes to these wonderful people (emoji key):