XmlDiffLib
XmlDiffLib copied to clipboard
xsi:nil="true" incorrectly reporting as a diff
var doc = @"<a xmlns:xsd=""http://www.w3.org/2001/XMLSchema"" xmlns:xsi=""http://www.w3.org/2001/XMLSchema-instance""><b xsi:nil=""true"" /></a>";
var diff = new XmlDiff( doc, doc );
var options = new XmlDiffOptions { TwoWayMatch = true };
diff.CompareDocuments( options );
var ss = diff.ToString();
Me too.
I get bot a Delete and an Insert for the same node. "Description": "Node not found", "Node Type": "Tag"
I wonder if curing this will lead to another option as to whether to consider an element with xsi:nil="true" and a completely omitted element as the same thing or not.