.Net中的System.Xml.Linq命名空间提供了linq to xml的支持
例子xml file
Tove Jani Reminder Don't forget me this weekend!aking man 27 jambor man 27
how to operate
var query = from c in xml.Descendants("user") let a = c.Element("name").Value where a == "aking" select new { c, a };