2011-12-12 36 views
1

林加載XML從流使用linq2Xml編輯元素,但與Xpath?

 XDocument xmlFile = XDocument.Load(stream); 
     var query = from c in xmlFile.Elements("//Band") //error here 
        select c; 

modify query.... 

是否有可能發現它們在XPath的格式元素? (//Band)?

p.s.我可以使用的後代,但我想問的XPath ....

回答