Hi,
I've got a problem with suming up some value from my xml.
Here it is :
Code:
<output-objects>
<output-object name="test">
<attribute name="Currency">
<text>EUR</text>
</attribute>
<attribute name="Total">
<number>80000.08</number>
</attribute>
</output-object>
<output-object name="test">
<attribute name="Currency">
<text>RON</text>
</attribute>
<attribute name="Total">
<number>70000.07</number>
</attribute>
</output-object>
<output-object name="test">
<attribute name="Currency">
<text>EUR</text>
</attribute>
<attribute name="Total">
<number>60000.06</number>
</attribute>
</output-object>
</output-objects>
I'm trying to sum up the attribute 'Total' only when the Currency attribute is set to 'EUR'. So basicly, in this example, I want to sum : 80000.08 + 60000.06 only. I didn't manage to do it with solutions I've tried.
Hope that someone can help me...
Thanks in advance !