using System;
using System.Linq;
using System.Xml.Linq;
using System.Xml;
public class Program
{
public static void Main()
XDocument doc = XDocument.Parse(@"<pokemons>
<pokemon>
<color>red</color>
<name>Charrizard</name> //the content is named value right ??
</pokemon>
</pokemons>");
bool b = doc.Descendants("name").Any(x => x.Value == "Charrizard");
Console.WriteLine(b);
}