string xml="< theme>
<colors>
<color>
<code>1</code>
<name>blue</name>
<priority>5</priority>
</color>
<color>
<code>2</code>
<name>red</name>
<priority>2</priority>
</color>
<color>
<code>3</code>
<name>green</name>
<priority>7</priority>
</color>
</colors>
</theme>"
I would like to convert this xml string into a List of dictionaries called, say, 'colors'. For example:
List< Dictionary< string, string>> colors=new List< Dictionary< string, string>>();
colors=//Magic happens here
colors[0]["name"] would return 'blue'
colors[2]["priority"] would return '7'
etc.
Thanks.