T
Thomas Zangl
Hi!
I have an XML like this:
<?xml version="1.0" encoding="UTF-8"?>
<invoice>
<bill>
<BId>20</BId>
<CId>73</CId>
<BDate>2006-01-10</BDate>
<BStatus>0</BStatus>
</bill>
<billitems>
<item>
<PName>Kiwi</PName>
<PPrice>0.900</PPrice>
<PId>1</PId>
<BCQuant>15</BCQuant>
</item>
<item>
<PName>Apfel</PName>
<PPrice>0.500</PPrice>
<PId>3</PId>
<BCQuant>10</BCQuant>
</item>
</billitems>
</invoice>
Now I want to have the sum of
/invoice/billitems/item/BCQuant*/invoice/billitems/item/PPrice
(=total price)
Any ideas how to do?
TIA!
I have an XML like this:
<?xml version="1.0" encoding="UTF-8"?>
<invoice>
<bill>
<BId>20</BId>
<CId>73</CId>
<BDate>2006-01-10</BDate>
<BStatus>0</BStatus>
</bill>
<billitems>
<item>
<PName>Kiwi</PName>
<PPrice>0.900</PPrice>
<PId>1</PId>
<BCQuant>15</BCQuant>
</item>
<item>
<PName>Apfel</PName>
<PPrice>0.500</PPrice>
<PId>3</PId>
<BCQuant>10</BCQuant>
</item>
</billitems>
</invoice>
Now I want to have the sum of
/invoice/billitems/item/BCQuant*/invoice/billitems/item/PPrice
(=total price)
Any ideas how to do?
TIA!