public static string GetBoardGameName(this XElement boardgame)
{
return (boardgame.Elements("name")
.Where(p => p.Attribute("type").Value == "primary")
.Select(p => p.Attribute("value").Value)).SingleOrDefault();
}
public static bool IsExpansion(this XElement boardgame, string typeAttr = "type")