In XMLUnit 2.x, can I ignore all elements in the actual ("control") XML that are not present in my test ("expected") XML?
Example:
Actual:
<a>123</a>
<b>456</b>
<c>789</c>
Test:
<b>456</b>
<c>xxx</c>
I would want to detect the difference in <c>
but ignore the <a>
tag completely because it's not present in the test XML.
The idea is that I have a big XML that I want to compare, but only a subset of elements is interesting to me, and I don't want to give XMLUnit a still large list of element names to ignore or to not ignore.