XmlDiffLib icon indicating copy to clipboard operation
XmlDiffLib copied to clipboard

xsi:nil="true" incorrectly reporting as a diff

Open weplanndallas opened this issue 8 years ago • 1 comments

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

weplanndallas avatar Nov 30 '16 01:11 weplanndallas

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.

MarkWhybird avatar Jun 28 '17 05:06 MarkWhybird