I’m looking for a good way to convert an XmlDocument to Dictionary<string, string> using Linq.
My xml is formatted like this:
<config>
<field>value</field>
<field2>value2</field2>
</config>
I’d like to put this into a Dictionary with key value pairs looking like this:
field, value
field2, value2
I’m thinking I should use Linq to do this but I’m not sure about the syntax.
I dont know if its the better way, but its clean & simple..