I have the following XML...
<TechnicalMeterDetails>
<RemovedMeterRegisters MeterCategoryCode="RM067">
</RemovedMeterRegisters>
<RemovedMeterRegisters MeterCategoryCode="RM066">
</RemovedMeterRegisters>
<NewMeterRegisters MeterCategoryCode="RM068">
</NewMeterRegisters>
<NewMeterRegisters MeterCategoryCode="RM067">
</NewMeterRegisters>
</TechnicalMeterDetails>
I want to check that the MeterCategoryCode value in the RemovedMeterRegisters segments is the same value in the NewMeterRegisters segments.
In the above example the answer would be false.
If RM068 was RM066 then the answer would be true.
The order of MeterCategoryCode values in each segments could be different as shown in the example above.
I want to represent this in a single XPATH statement or comparing 2 XPATH statements.
Anyone with any ideas, thanks in advance?