title: XDocument does not load Xml string properly
body: <p>I'm trying to do the following: load an Xml string into a <code>XDocument</code> object, but when I try to access elements through <code>Descendants</code> method it return nothing when I tried to see the value of inner elements in Visual Studio it does not recognize it as Xml so what is the problem here?</p>
  
  <pre><code>string xml = @"&lt;ArrayOfKeyValueOfstringint xmlns=""http://schemas.microsoft.com/2003/10/Serialization/Arrays"" xmlns:i=""http://www.w3.org/2001/XMLSchema-instance""&gt;
    &lt;KeyValueOfstringint&gt;
      &lt;Key&gt;crscmprsn_ttlprt1&lt;/Key&gt;
      &lt;Value&gt;1&lt;/Value&gt;
    &lt;/KeyValueOfstringint&gt;
    &lt;KeyValueOfstringint&gt;
      &lt;Key&gt;ptntmntrfrm_ttlprt1&lt;/Key&gt;
      &lt;Value&gt;1&lt;/Value&gt;
    &lt;/KeyValueOfstringint&gt;
  &lt;/ArrayOfKeyValueOfstringint&gt;";
  
  var xdoc = XDocument.Parse(xml);
  IEnumerable&lt;XElement&gt; elements = xdoc.Descendants("KeyValueOfstringint");
  
  var lst = new List&lt;KeyValuePair&lt;string,int&gt;&gt;();
  
  foreach (var item in elements)
  {
      var k = item.Element("Key").Value;
      int v = int.Parse(item.Element("Value").Value);
      var kvp = new KeyValuePair&lt;string,int&gt;(k,v);
      lst.Add(kvp);
  }
  </code></pre>
  
  <p><img src="https://i.stack.imgur.com/LxOUy.png" alt="debugger visualizer"></p>