My xml looks like:
<root>
<blah1>some text</blah1>
<someother>blah aasdf</someother>
</root>
I want to convert this to a dictionary
So I can do:
myDict["blah1"]
and it returns the text 'some text'
So far I have:
Dictionary<string,string> myDict = (from elem in myXmlDoc.Element("Root").Elements()
select elem.Value).ToDictionary<string,string>();
Is that correct or do I have to change the select to something with 2 results?