I have the following XML document:
<parameters>
<source value="mysource" />
<name value="myname" />
<id value="myid" />
</parameters>
I’m trying to parse this XML, using XDocument so that I would get a list (Dictionary) containing the node and it’s value:
source => mysource, name => myname, id => myid
Any ideas on how I can do this?
I tried this out in LINQPad and it provides what you are looking for: