I have some XML with the following structure:
cac:TaxTotal
cac:TaxSubtotal
cbc:TaxableAmount
I need to retrieve the cbc:TaxableAmount, which I do by iteratively picking each item using for each. So far, so good.
However; sometimes the XML has more than one of the third level item. Can anyone suggest how to A) Identify how many, and B) sum them together?