次のような XML ドキュメントがあります。
<document>
<post>
<author>Bill Smith</author>
<subject>Test Article</subject>
<dates>
<uploaded>some date</uploaded>
<published>some date</published>
</dates>
<price>
<provider>Amazon</provider>
<cost>1540</cost>
</price>
<price>
<provider>WH Smith</provider>
<cost>2640</cost>
</price>
</post>
<post>
<author>Bill Smith</author>
<subject>Test Article</subject>
<dates>
<uploaded>some date</uploaded>
<published>some date</published>
</dates>
<price>
<provider>Amazon</provider>
<cost>1540</cost>
</price>
<price>
<provider>WH Smith</provider>
<cost>2640</cost>
</price>
</post>
</document>
XDocument w/.NET 4.5 を使用しています。これをソートするために使用できる他の方法があることは知っています。
各投稿を引っ張って Post モデルに入れても問題ありません。ただし、EF データベースに挿入できるように、価格要素を並べ替えて最低価格 (およびプロバイダー) を選択したいと考えています。
どんな助けでも大歓迎です。私はこれからどこから始めればよいのか完全に立ち往生しています。