XmlDiffLib
XmlDiffLib copied to clipboard
XML Node and attribute insertions are ignored unless "TwoWayMatch" enabled
The behavior of this library seems to pick up on if a value changes in a node or if a node is removed, however if I were to add a node, that does not appear in the diff list. Similarly removed or modified attributes are shown in the node list (a change or removal of an attribute is always shown as delete in the node list), but an additional attribute does not show up. Ultimately everything appears when TwoWayMatch is enabled but this should not happen as an insertion is a valid difference between the files looking one way. Even if I have an empty xml node in the first file and another object in the second file, the diff node list returns empty. I've attached two files that I used to test to replicate the issue: