я имею следующий XMLLINQ к XML в DataTable
появляются две<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>
я пытался поставить его в DataTable, который будет выглядеть следующим
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?
Я хочу, чтобы я мог дать вам +10 действительно. – user1590636