I have a problem when you have a parent node in a different order. For example:
XML1 Example
<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>
XML2 example
<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 gets FirstParent as controlnode and SecondParent as testnode. And, therefore, it is right to conclude that the nodes are different. But I need to compare both FirstParent and SeconParent with their correct match in another file.
So, it seems that I need to sort the top-level nodes (?) First.
Does anyone know how I can overcome this? What should I check / modify / implement differently to pass the correct parent tandem to the ElementQualifier?
Perhaps with the right directions, I can develop what I need.