Hi,
I have repeating items in a XML file:
...
<POS>
<COUNT>10<COUNT/>
<PRICE>3.99<PRICE/>
<POS>
<POS>
<COUNT>20<COUNT/>
<PRICE>5.00<PRICE/>
<POS>
...
To extract the fields, I use a “Repeat Step” that iterates over all “POS”-elements.
That works fine, but now I want to add an Extraction Step that multiplies two of the extracted fields (“COUNT” and “PRICE”) and adds a new field “SUM” that is set to “39.90” and “100.00”, as if the XML did contain:
<POS>
<COUNT>10<COUNT/>
<PRICE>3.99<PRICE/>
````<SUM>39.90<SUM/>`
`<POS>`
<POS>
<COUNT>20<COUNT/>
<PRICE>5.00<PRICE/>
````<SUM>100.00<SUM/><POS>`
How can I access the fields “COUNT” and “PRICE” of the current element in the Repeat Step (which uses a “For Each”) and put the result into “SUM”?
Horrido,
Thomas