//filter by company and return a collection of names as strings var query = from person in doc.Descendants("person") where (string)person.Element("company") == "65hours" select (string)person.Element("name");