This needs to be cleaned up but you can access it as follows :
var keyvalues = from item in document.Descendants()
select item;
var xAttribute = keyvalues.ElementAt(3).Attribute("value");
if (xAttribute != null)
{
var configvalue = xAttribute.Value;
}