score:2

Accepted answer

First you need to select all "setting" nodes. After it, you need to query the "attribute" "key".

Here is the code:

var JobNames = xml.Descendants("setting").Where(xe => xe.Attribute("key").Value.Contains("JobType")).ToList();

foreach (System.Xml.Linq.XElement strJobName in JobNames)
{
    Console.WriteLine(strJobName.LastAttribute.Value);
}

Related Query

More Query from same tag