I want to compare two XML files using XMLUnit (I don't want to reinvent something which is already present).
XML 1:
<?xml version="1.0"?>
<Product>
<Property>
<Container value="1">Test 01</Container>
<Container value="3">Test 02</Container>
<Container value="5">Test 03</Container>
</Property>
</Product>
XML2:
<?xml version="1.0"?>
<Product>
<Property>
<Container value="3">Test 01</Container>
<Container value="7">Test 02</Container>
<Container value="1">Test 03</Container>
<Container value="5">Test 04</Container>
</Property>
</Product>
I want to compare the elements only if the node along with the attribute matches. Also if the position is different then it should be similar.
I have tried with DetailedDiff but it is showing a lot of results but I only want to extract specific changes. Please give your seggestions.