Hi fellow members,

I'm a C3 newbie and I'm having trouble fixing the issue I'm having with my code.

This is my code to read this part of the xml file :
---------------------------------------------------------------------------
if (reader.Name == "Amount")
{
Salary = reader.GetAttribute(1);
compTotSalary = calcTotals(compTotSalary, Salary);
Salary= calcAmt(Salary, 11);
}
--------------------------------------------------------------------------

and this is the xml file it's reading

----------------------------------------------------------------------

<Box12>

<Amount Value="450.50" Code="C"/>

<Amount Value="26889.92" Code="DD"/>

</Box12>
--------------------------------------------------------------------

it is working but it's reading the last salary ( code = DD) instead of the first one.

Please help!

Thanks