I want to take the solr response xml, and load a custom collection.
I'd like this to be done the XDocument way, as I need to learn linq to xml.
So the XML looks like:
<response>
<lst>
</list>
<result ... >
<doc>
<arr name="cat">
</arr>
<str name="t1">text</str>
<str name="t2">text2</str>
<str name="t3">text3</str>
<float name="amount">35.99</float>
</doc>
<doc>
..
</doc>
</result>
</respones>
My collection:
List<Result> results = new List<Result>();
public class Result
{
string T1
string T2
string T3
decimal Amount
}