title: How to convert XML to Dictionary
body: <p>I've xml as following:</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="UTF-8"?&gt;
  &lt;root&gt;
    &lt;data name="LogIn"&gt;Log In&lt;/data&gt;
    &lt;data name="Password"&gt;Password&lt;/data&gt;
  &lt;/root&gt;
  </code></pre>
  
  <p>I success to do that without Linq, any one can help me to convert the following code to Linq:</p>
  
  <pre><code>using (XmlReader reader = XmlReader.Create(_xml))
  {
      while (reader.Read())
      {
         if (reader.NodeType == XmlNodeType.Element &amp;&amp; reader.LocalName == "data")
         {
            reader.MoveToAttribute("name");
            string key = reader.Value;
            reader.MoveToContent();
            string value = reader.ReadElementContentAsString();
            _dictionary.Add(key, value);
         }
      }
      reader.Close();
  }
  </code></pre>