I am looking to target all child elements that are part of a specific layer in the XML structure, starting from a given element. For example, if the XML layout is as follows:
<teststep id="1">
<description>Teststep 1</description>
<call-action id="2">
<parameters>
<parameter key="starttime" />
<parameter key="duration" />
</parameters>
<results>
<store-result key="" destination=""/>
</results>
</call-action>
<call-action id="3">
<parameters>
<parameter key="starttime" />
<parameter key="duration" />
</parameters>
<results>
<store-result key="" destination=""/>
</results>
</call-action>
</teststep>
I want to select all first-level child elements like this:
teststep > select first child elements in hierarchy { ... }
The targeted elements should be only the description and the 2 call-action elements.
This process will then continue for subsequent layers, with the next target being the parameters elements.
Any suggestions on how to achieve this?
Thank you!