Given an XML document e.g.
<root>
<row>
<a>2</a>
<b>1</b>
<c>8</c>
</row>
<row>
<b>5</b>
<a>2</a>
<c>8</c>
</row>
<row>
<a>2</a>
<c>8</c>
<b>6</b>
</row>
</root>
Is there an easy way to claim that an XML document is sorted by element B in XMLUnit
Edit: I have a strange problem with a piece of software that I cannot change, where the value of the XML tags in any given node should be in a specific order. I would like my test conductor to apply this set of rules before any other check.
source
share