0

I have the following XML source structure:

<Bills>
    <bill ID ="02">
        <Product IDP="MH001" amount="10" price="20"/>
        <Product IDP="MH002" amount="20" price="20"/>
        <Product IDP="MH003" amount="30" price="20"/>
        <Product IDP="MH004" amount="50" price="20"/>
        <Product IDP="MH005" amount="60" price="20"/>
    </bill>
    <bill ID ="01">
        <Product IDP="MH101" amount="10" price="20"/>
        <Product IDP="MH102" amount="10" price="20"/>
        <Product IDP="MH103" amount="20" price="20"/>
        <Product IDP="MH104" amount="20" price="20"/>
        <Product IDP="MH105" amount="10" price="20"/>
    </bill>
</Bills>

HTMX view

How to calculate the total?
Please help. Many thanks

Uttam Kumar Roy
  • 2,060
  • 4
  • 23
  • 29

1 Answers1

0

You might find my answer here helpful, since it is essentially the same question:

Sum of Multiplied Values

Community
  • 1
  • 1
Michael Kay
  • 156,231
  • 11
  • 92
  • 164