i have a xml file with this content. each transaction starts with trans_ and ends with transaction number
<trans_1>
<date>2013/10/10</date>
<code>109129</code>
<amount>+000000024000000</amount>
<balance>+000000024000000</balance>
</trans_1>
<trans_2>
<date>2013/10/10</date>
<code>109149</code>
<amount>+000000025000000</amount>
<balance>+000000049000000</balance>
</trans_2>
<trans_3>
<date>2013/10/10</date>
<code>109161</code>
<amount>+000000005000000</amount>
<balance>+000000054000000</balance>
</trans_3>
i want to map this array to list of following object.
class Transaction{
string date;
string code;
string amount;
string balance;
/**** getter and setter ***/
}