[Solved] LINQ to XML attributes
[ad_1] You can do it this way: var result= xdoc.Descendants(“image”) .Where(x => x.Attribute(“size”).Value == “large”) .Select(x => new User{ Image = x.Value }); Here is Working Example Fiddle [ad_2] solved LINQ to XML attributes