I need to solve this problem. I have an XML like this:
<root>
<CustomLines>
<Custom>
<VAR1>00001</VAR1>
<VAR2>5</VAR2>
</Custom>
<Custom>
<VAR1>00001</VAR1>
<VAR2>2</VAR2>
</Custom>
<Custom>
<VAR1>00003</VAR1>
<VAR2>9</VAR2>
</Custom>
<Totals>
<Tot>
<VAR3>00001</VAR3>
</Tot>
<Tot>
<VAR3>00003</VAR3>
</Tot>
</Totals>
</CustomLines>
</root>
I need to do 2 groups (00001 and 00003) and then sum for each group VAR2.
The result will be like this:
00001 7
00003 9
I tried but I'm not able to group the 2 Custom Nodes.