0
我有從我的數據庫收集的頁面列表。每一頁都有一個XML字段,它看起來是這樣的:解析linq查詢中的XML
<items>
<item id="153"/>
<item id="147"/>
</items>
現在我只希望它指向XML中的特定標識的頁面。因此,像這樣:
var pages = GetAll().Where(p => p.XmlField //this is where i'm lost
我想要做這樣的事情:
p.XmlField.Descendants().Where(x => x.Attribute("id") == id