I have some XML with the following structure:
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?