I am trying to get Absoluteentry tag\'s value from the below xml string, but its displaying objectrefrence not set exception
<
You can use Descendants too. Descendants finds children at any level.
Descendants
var result = doc.Element(env + "Envelope") .Element(env + "Body") .Descendants(responseNs + "Absoluteentry").Value;