The current implementation of Diff looks to have an assumption that collection is ordered and doesn't look there's any switch to the assumption so that unordered collections can be handled.
It would be nice to provide unordered collection diff based on XML schema.
This is a test to illustrate what I'm trying to suggest: https://github.com/izeye/samples-java-branches/blob/master/src/test/java/learningtest/org/xmlunit/diff/DiffTests.java#L62-L82
The current implementation of
Difflooks to have an assumption that collection is ordered and doesn't look there's any switch to the assumption so that unordered collections can be handled.It would be nice to provide unordered collection diff based on XML schema.
This is a test to illustrate what I'm trying to suggest: https://github.com/izeye/samples-java-branches/blob/master/src/test/java/learningtest/org/xmlunit/diff/DiffTests.java#L62-L82