Using LINQ to XML to Parse a SOAP message

前端 未结 3 1923
终归单人心
终归单人心 2020-12-09 23:39

I am getting up to speed in Linq to XML in C# and attempting to parse the following message and don\'t seem to be making much progress. Here is the soap message I am not sur

3条回答
  •  粉色の甜心
    2020-12-10 00:03

    You can get your XML into an XElement an then just do:

    rsp.Descendants("Lookup").ToList();
    

    Or

    rsp.Descendants("objIn").ToList();

    I think this is the best way to do it. I think that XElement is the best choice.

提交回复
热议问题