var cityList = from country in doc.Element(\"result\") .Element(\"cities\") .Descendants(\"city\") select ne
As the error message says, your Linq query returns an System.Linq.IQueryable (for all intents and purposes a collection of ints). If you'd like to get one of them, you can either call First or ElementAt(n) to get the n'th element.