I am having an issue when you have the parent node in different order. For example:
Sample XML1
<level1>
<name>FirstParent</name>
<level2>
<somefield>AAA</somefield>
</level2>
<level2>
<somefield>BBB</somefield>
</level2>
</level1>
<level1>
<name>SecondParent</name>
<level2>
<somefield>CCC</somefield>
</level2>
<level2>
<somefield>DDD</somefield>
</level2>
</level1>
Sample XML2
<level1>
<name>SecondParent</name>
<level2>
<somefield>DDD</somefield>
</level2>
<level2>
<somefield>CCC</somefield>
</level2>
</level1>
<level1>
<name>FirstParent</name>
<level2>
<somefield>BBB</somefield>
</level2>
<level2>
<somefield>AAA</somefield>
</level2>
</level1>
When I debug the RecursiveElementNameAndTextQualifier, I see that it is getting FirstParent as controlnode and SecondParent as testnode. And, therefore, concluding correctly that the nodes are different. But what I need is to compare both FirstParent and both SeconParent with their correct match in the other file.
So, seems that I need to sort the higher level nodes first (?).
Does anybody know how can I overcome this? What should I check/modify/implement differently to pass the right tandem of parents to the ElementQualifier ?
Maybe, with the right directions, I can develop what is needed.