XDocument xdoc = XDocument.Load("file.xml"));
var elm = from element in xdoc.Descendants("element")
           select new { 
               attribute = element.Attribute("attribute").Value,
           };
2
solved How do I read the contents of an XML element using C#? [duplicate]