Posted on: 1/9/2014 3:28:12 AM | Views : 678

I've class as follow,
public class chequeItem { public string bank_code; public string bank_nme; public string chequeNo; public chequeItem(string bank_Code, string bank_nme, string chequeNo) { this.bank_Code = bank_Code; this.bank_nme = bank_nme; this.chequeNo = chequeNo; } }
Now, I do the insert as follow,
List<chequeItem> myChequeItem = new List<chequeItem>(); people.Add(new chequeItem("cimb", "CIMB BANK", "1925")); people.Add(new chequeItem("mbb", "MAYBANK", "9022")); people.Add(new chequeItem("amb", "ARAB BANK", "5000"));
I want to read all the data in myChequeItem. As a result, I can built the string as follow,
<data> <chequeItem> <bank_code>cimb</bank_code> & ...

Go to the complete details ...