我的XML结构如下:来自C#LinqtoXML,getparentswhenachildsatisfycondition我有这样的东西:XElementdoc=XElement.Load("path");varresult=doc.Elements("siteNode").Where(parent=>parent.Elements("siteNode").Any(child=>child.Attribute("action").Value==ActionName&&child.Attribute("controller").Value==ControlerName));返回我的节点及其