Skip to content
This repository has been archived by the owner on Jun 26, 2021. It is now read-only.
/ XmlComparer Public archive

a library to compare xml documents (or nodes) and get a list of differences.

License

Notifications You must be signed in to change notification settings

nils-org/XmlComparer

Repository files navigation

XmlComparer

standard-readme compliant All Contributors Appveyor build Codecov Report NuGet package

a library to compare xml documents (or nodes) and get a list of differences.

Table of Contents

Status

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

Install

using nuget:

Install-Package XmlComparer
dotnet add XmlComparer
paket add XmlComparer

Usage

See also the [local documentation][documentation] and [api][api]

Adding files

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);

Maintainer

Nils Andresen @nils-a

Contributing

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!

Contributors

Thanks goes to these wonderful people (emoji key):

License

MIT License © Nils Andresen