My XML looks like this:
<element>
<AttrValue someatt="a">
<StyledElement>
<Container />
<StyledElement>
<Paragraph />
<StyledElement>
<PlainText someValue="some Text" />
</StyledElement>
</StyledElement>
<StyledElement>
<Paragraph />
<StyledElement>
<PlainText TextValue="another Text" />
</StyledElement>
</StyledElement>
</StyledElement>
</AttrValue>
</element>
The output should look like this:
<element>
<AttrValue someatt="a"> some Text , another Text (text from child nodes - seperated by comma) </AttrValue>
</element>
I have a multiple elements like this so maybe it should be with for-each?