G
Guiding5
Hi group!
How do I aggregate elements based on one of it node's values ?
For example:
Input XML:
<dataset>
<value>
<name>Bob</name>
<desc>Silent</desc>
</value>
<value>
<name>Bob</name>
<desc>Fat</desc>
</value>
<value>
<name>Jay</name>
<desc>Stupid</desc>
</value>
</dataset>
Needed result:
<dataset>
<value>
<name>Bob</name>
<desc>Silent</desc>
<desc>Fat</desc>
</value>
<value>
<name>Jay</name>
<desc>Stupid</desc>
</value>
</dataset>
How do I aggregate elements based on one of it node's values ?
For example:
Input XML:
<dataset>
<value>
<name>Bob</name>
<desc>Silent</desc>
</value>
<value>
<name>Bob</name>
<desc>Fat</desc>
</value>
<value>
<name>Jay</name>
<desc>Stupid</desc>
</value>
</dataset>
Needed result:
<dataset>
<value>
<name>Bob</name>
<desc>Silent</desc>
<desc>Fat</desc>
</value>
<value>
<name>Jay</name>
<desc>Stupid</desc>
</value>
</dataset>