How to parse XML (DataSet) in Windows Phone 7

前端 未结 2 509

I have a XML Like Below, But i am not able to parse it. Please help me to parse the below XML.



        
2条回答
  •  春和景丽
    2021-01-29 00:07

    The element GetResult is also in the http://tempuri.org namespace, so that is why you select clause is not finding anything.

    Anyhow, I would simplify the query to the following:

    public static String myNamespace = "http://tempuri.org/";
    XDocument reader = XDocument.Parse(response);
    XElement resultElement = reader.Descendants(XName.Get("GetResult", myNamespace)).Single();
    

提交回复
热议问题