Hi I'm trying to use XML Units RecursiveElementNameAndTextQualifier , But my below test is failing. When I interchange the value of foo3 and foo2 in below test xml file , the test is passed with true (for diff.similar()) . Not sure what the issue is.RecursiveElementNameAndTextQualifier is only going to specific depth ?
Contorl :
<table>
<tr>
<td>
<a>foo</a>
<a>foo1</a>
</td>
<td>
<a>foo2</a>
<a>foo3</a>
</td>
</tr>
<tr>
<td>
<a>bar</a>
</td>
</tr>
</table>
**Test:**
<table>
<tr>
<td>
<a>bar</a>
</td>
</tr>
<tr>
<td>
<a>foo3</a>
<a>foo2</a>
</td>
<td>
<a>foo1</a>
<a>foo</a>
</td>
</tr>
</table>
DetailedDiff detDiff = new DetailedDiff(diff);
diff.overrideElementQualifier(new RecursiveElementNameAndTextQualifier());
XMLUnit.setNormalizeWhitespace(true);
System.out.println("Similar? " + diff.similar());