Hello,
Fist take xml in string value
After then parse this string value to XElement
Now using linq query get ErrorCode value .
string ErrCode = "";
string resultXML = @"<Results xmlns=""http://schemas.microsoft.com/sharepoint/soap/"">
<Result ID=""1,Delete"">
<ErrorCode>0x00000000</ErrorCode>
</Result>
</Results>";
XElement xElementResult = XElement.Parse(resultXML);
var varResult = (from res in xElementResult.Elements()
select res.Value).FirstOrDefault();
if (varResult != null)
{
ErrCode = varResult;
}
Hope this helpful!
Thanks