HTMLRewritter - Dealing with nested nodes
I'm having a hard time figuring out How to use HTMLRewritter. I have an XML-like structure, small snippets, like so:
I want to transform it like so:
Any ideas?
I want to transform it like so:
Any ideas?
<y>
<a>xxx</a>
<b>xxx</b>
<c>xxx</c>
</y><y>
<a>xxx</a>
<b>xxx</b>
<c>xxx</c>
</y><y>
<s>
<a>xxx</a>
<b>xxx</b>
</s>
<c>xxx</c>
</y><y>
<s>
<a>xxx</a>
<b>xxx</b>
</s>
<c>xxx</c>
</y>