How to convert ReadOnlyCollection class data to xml data
I have class as
ReadOnlyCollection<Intuit.Ipp.Data.SalesReceipt> dataSalesReceipt ;
dataSalesReceipt = new ReadOnlyCollection<Intuit.Ipp.Data.SalesReceipt>(customerQueryService.ExecuteIdsQuery("select * from SalesReceipt").ToList());
How can i convert dataSalesReceipt collection into xml data.?
dataSalesReceipt contains container, subtag of data.
Ex:
BillAddress is main container(Property) which have City , Street are sub tags.