//using System.Data.Linq;

using (StreamReader stream = new StreamReader("XmlFilePath" , Encoding.UTF8))
{
XElement xml = XElement.Load(stream);
IEnumerable<XElement> nodeList =
from element in xml.Descendants()
where element.Attributes().Any(attr=> attr.Name == "ali")
select element;
// ...
}