Reading elements into a dictionary object using LINQ

qwehtipyvx

New Member
I am using traditional XmlReader to parse a xml document into a dictionary? However i am in search for less complicated method minimum lines of code. I have the following Xml document\[code\]<Msg> <field id="0" value="http://stackoverflow.com/questions/10735293/0100"/> <field id="3" value="http://stackoverflow.com/questions/10735293/310000"/> <field id="7" value="http://stackoverflow.com/questions/10735293/0101150110"/> <field id="11" value="http://stackoverflow.com/questions/10735293/000002"/></Msg>\[/code\]Is it possible to split the following xml document into a dictionary object with key being the attribute and value being the value of that element?eg:-Key = 0 value =http://stackoverflow.com/questions/10735293/0100
 
Back
Top