Skip to content

XML Node and attribute insertions are ignored unless "TwoWayMatch" enabled #9

@Bryan-Tam

Description

@Bryan-Tam

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:

Example A: sample.txt
Example B: sample_different.txt

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions