c# - Loading Xml File Into Section, Key and Value Collection -
we have settings file xml extending pluggable modules writing. want use our existing xml settings allow extension methods written on them. long story short if had xml file so: <settings> <settingsone key1_1="value1" key1_2="value2" /> <settingstwo key2_1="value1" key2_2="value2" /> </settings> how load collection of settingsentry settingsentry looked so: public class settingsentry { public string section { get; set; } public string key { get; set; } public string value { get; set; } } where section "settingsone", key "key1_1" , value "value1". is possible or going down dark path? edit: ok suggestion of linq xml life save, trying xmlserializer! below have far, there way turn single select rather 2 have below: var root = xelement.load(pathtoxml); var sections = el in root.elements() select el.name; l...