of the following code i want to get the bold elements: _connectionId and return.
There are two return tags, I need to get "return" and the relative value and the same for "_connectionid"
<Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:xs="http://www.w3.org/2001/XMLSchema"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
<Body>
<login_newResponse xmlns=\"http:XXXXXXXXXXXX.wsdl">
<return>
<_**connectionid**>@@@@@@@@@@@@@AHT@Q@@@@@D@GR@SUEF</_**connectionid**>
<**return**>CONNESSIONE AVVENUTA</**return**>
</return>
</login_newResponse>
</Body>
</Envelope>
I've tried with this code
XDocument XML = XDocument.Load(s);
var lv1s = from lv1 in XML.Descendants("Body")
select lv1.Nodes();
I get a list of XML strings but it's impossible to get a specific element. Is there a way to extract whatever element just indicating the name?
Thanks!