Hi,
I have one API regarding flight search. In that, i am reading the values into xml file and getting elements. In this scenario, one xml element has item names "item" and another element has another item named as "a:item". When i am getting values through "item", it is working fine but through "a:item" values are not getting. How to resolve this problem?
Please help me..It's urgent
Thanks in advance
Hema LathaPosted Mar 11, 2015, 3:08 AM
{
System.Threading.Thread.Sleep(1000);
for (int j = 0; j < instance.item[i].proposals.ToList().Count; j++)
{
if (instance.item[i].proposals[j].item != null)
{
for (int k = 0; k < instance.item[i].proposals[j].item.ToList().Count; k++)
{
int aa = instance.item[i].proposals[j].item[k].terms.ToList().Count;
for (int term =0; term < instance.item[i].proposals[j].item[k].terms.ToList().Count; term++)
{
for (int it = 0; it < instance.item[i].proposals[j].item[k].terms[term].item.ToList().Count; it++)
{
string sss = instance.item[i].proposals[j].item[k].terms[term].item[it].price;
}
}
}
}
}
}
Lucky LaxmanPosted Mar 11, 2015, 2:28 AM
Can you give me sample code where your getting error.
Thanks,
Lucky