title: How to load custom user.config xml into a dictionary
body: <p>I need to manually merge older user.config with new settings, and for now I just want to load old values into a dictionary:</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt;
  &lt;configuration&gt;
      &lt;userSettings&gt;
          &lt;myprog.Properties.Settings&gt;
              &lt;setting name="openkey" serializeAs="String"&gt;
                  &lt;value&gt;o&lt;/value&gt;
              &lt;/setting&gt; 
              &lt;setting name="licenseAccepted" serializeAs="String"&gt;
                  &lt;value&gt;True&lt;/value&gt;
              &lt;/setting&gt;
  </code></pre>
  
  <p>Code:</p>
  
  <pre><code>Dictionary&lt;string, string&gt; myDictionary = new Dictionary&lt;string, string&gt;();
  XmlDocument document = new XmlDocument();
  document.Load(OlderSettingLocation);
  XmlNodeList s = document.SelectNodes("/configuration/userSettings/myprog.Properties.Settings/setting");
              foreach (XmlNode node in s)
              {
                  myDictionary.Add(node.Attributes["name"].Value, node.Attributes["value"].Value);
              }
  </code></pre>
  
  <p>This results in node.Attributes["name"].Value being "setting" instead of "openkey" in the first loop, and and values are null</p>