I have the following input XML:
<root age="1">
<description>some text</description>
<section>
<item name="a">
<uuid>1</uuid>
<item>
</section>
<section>
<item name="b">
<uuid>2</uuid>
<item>
</section>
</root>
I would like to transform it into the following XML:
<root age="1">
<description>some text</description>
<section>
<item name="a">
<uuid>1</uuid>
<item>
<item name="b">
<uuid>2</uuid>
<item>
</section>
</root>
Thanks in advance.
A simpler and shorter solution:
When this transformation is applied on the provided XML document:
the wanted, correct result is produced: