Hi there,
In many case I work with DataSet & XML. So here some tips:
Put the
SerializableAttribute on your clases:
[Serializable]
public class SelectedRoomAvailability
{
public DataTable CardType { get; set; }
public DataTable CountryList { get; set; }
}
[Serializable]
public List<selectedroomavailability> RoomAvailability(params...)
{
}
</selectedroomavailability>
After that in your code to read XML, after DataSet's declaration you can put this:
DataSet dt = new DataSet();
dt.ReadXml("" + xnl.Item(0).InnerXml + "", XmlReadMode.Auto);
So, Let
ReadMode do the work for you. After that you will have your DataSet.
Hope it helps.