我有以下 xml 格式
<feed>
<entry>
<s:product>
<s:author>
<s:name>amazone</s:name>
<s:accountId>1111</s:accountId>
</s:author>
<s:title>xxx
</s:title>
<s:condition>used
</s:condition>
<s:inventories>
<s:inventory channel="online" availability="inStock">
<s:price shipping="4.9" currency="EUR">14.95</s:price>
</s:inventory>
</s:inventories>
</s:product>
</entry>
<entry>
<s:product>
<s:author>
<s:name>ebay</s:name>
<s:accountId>1221</s:accountId>
</s:author>
<s:title>yyy
</s:title>
<s:condition>new
</s:condition>
<s:inventories>
<s:inventory channel="online" availability="inStock">
<s:price shipping="4.90" currency="EUR">99.95</s:price>
</s:inventory>
</s:inventories>
</s:product>
</entry>
</feed>
我一直在尝试将其放入一个如下所示的数据表中
name condition price shipping totalprice availablity
amazone used 14.95 4.95 19.90 inStock
ebay new 99.95 4.90 104.85 inStock
如您所见,每个<entry>
都应该是一行,我不想要所有标签的值,只需以下
column name :value of <s:name>
column condition :value of <s:condition>
column sprice :value of <s:price>
column shipping :value of shipping which is an attribute of <s:price>
column totalprice :value of <s:price> + its attribute shipping
column avilability:value of avialability an attribute of <s:inventory>
我怎样才能使用 LINQ 实现这一点?