0
<?xml version="1.0" encoding="utf-8"?>
<soap:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
<soap:Body>
<TimNhanh_Text_ListNews_OfflineResponse xmlns="http://tempuri.org/">
<TimNhanh_Text_ListNews_OfflineResult>
<string>string</string>
<string>string</string>
</TimNhanh_Text_ListNews_OfflineResult>
</TimNhanh_Text_ListNews_OfflineResponse>
</soap:Body>
</soap:Envelope>
如何在xml中獲取節點?如何獲取XML元素(<Soap:body>)
我使用:
XDocument dataDoc = XDocument.Load(new StringReader(result));
foreach (var word in dataDoc.Descendants("TimNhanh_Text_ListNews_OfflineResult"))
{
}
但這不活躍。
感謝carlosfigueira!我想要元素並添加到列表 beaucause我需要數據在節點字符串?你可以幫助我 ? –
thongaduka