XDocument 搜索Xml文件节点方法
XDocument document = XDocument.Load("rss.xml");
XElement rootElement = document.Root;
IEnumerable<XElement> ie = rootElement.Descendants("item").Where(x => Convert.ToInt16(x.Attribute("id").Value) > 10);
foreach (var item in ie)
{
Console.WriteLine(item.Attribute("id").Value);
}