1
I am in debt to get the values of the following XML
<ArrayOf xmlns="http://schemas.datacontract.org/2004/07/WcfServicePedido_v7" xmlns:i="http://www.w3.org/2001/XMLSchema-instance">
<V>
<D>S</D>
<I>Z</I>
<V>1</V> </V> <V>
<D>S</D>
<I>Z</I>
<V>2</V> </V>
</ArrayOf>
To read I used the following code:
XmlReader xmlReader = XmlReader.Create(url);
XDocument x = XDocument.Load(xmlReader);
var EmpData = from emp in x.Descendants("V")
select new M
{
V = Convert.ToInt32(emp.Descendants("V").First().Value),
I = emp.Descendants("I").First().Value,
D = emp.Descendants("D").First().Value
};
List<M> aux = EmpData.ToList();
I can’t get the figures.
EmpData
empty?– Leonel Sanches da Silva
Windows Mobile :P.... recommend you to study windows phone 8
– Silvio Andorinha
yes empty the list
– user6018
I already use, but for PDA has to be this version
– user6018