title: Can't get data from xml file in C# (Windows phone 8)
body: <p>I Have the following code. How can i get the value of clouds from the XML file?
  Just tried someting. The list is filled with the right number of elements, but they are al empty.</p>
  
  <pre><code> XDocument xdoc = XDocument.Parse(e.Result, LoadOptions.None);
  
   List&lt;string&gt; list = new List&lt;string&gt;();
  
   foreach (XElement element in xdoc.Root.Elements("forecast").Elements("time"))
   {
       list.Add((string)element.Attribute("time"));
  
   }
  </code></pre>
  
  <p>The xml file:</p>
  
  <pre><code>&lt;weatherdata&gt;
      &lt;location&gt;
          &lt;name&gt;Dronten&lt;/name&gt;
          &lt;type/&gt;
          &lt;country&gt;NL&lt;/country&gt;
          &lt;timezone/&gt;
          &lt;location altitude="0" latitude="52.525002" longitude="5.71806" geobase="geonames" geobaseid="0"/&gt;
      &lt;/location&gt;
      &lt;credit/&gt;
      &lt;meta&gt;
          &lt;lastupdate&gt;2013-06-20T17:30:39&lt;/lastupdate&gt;
          &lt;calctime&gt;0.0547&lt;/calctime&gt;
          &lt;nextupdate&gt;2013-06-20T20:30:39&lt;/nextupdate&gt;
      &lt;/meta&gt;
      &lt;sun rise="2013-06-20T03:13:40" set="2013-06-20T20:04:01"/&gt;
      &lt;forecast&gt;
          &lt;time from="2013-06-20T15:00:00" to="2013-06-20T18:00:00"&gt;
              &lt;symbol number="801" name="few clouds" var="02d"/&gt;
              &lt;precipitation/&gt;
              &lt;windDirection deg="43.5014" code="NE" name="NorthEast"/&gt;
              &lt;windSpeed mps="6.9" name="Moderate breeze"/&gt;
              &lt;temperature unit="celsius" value="19.71" min="19.71" max="26.517"/&gt;
              &lt;pressure unit="hPa" value="1022.12"/&gt;
              &lt;humidity value="62" unit="%"/&gt;
              &lt;clouds value="few clouds" all="24" unit="%"/&gt;
          &lt;/time&gt;
          &lt;time from="2013-06-20T18:00:00" to="2013-06-20T21:00:00"&gt;
              &lt;symbol number="501" name="moderate rain" var="10d"/&gt;
              &lt;precipitation value="10.5" unit="3h" type="rain"/&gt;
              &lt;windDirection deg="18.0018" code="NNE" name="North-northeast"/&gt;
              &lt;windSpeed mps="3.72" name="Gentle Breeze"/&gt;
              &lt;temperature unit="celsius" value="13.24" min="13.24" max="19.706"/&gt;
              &lt;pressure unit="hPa" value="1021.71"/&gt;
              &lt;humidity value="100" unit="%"/&gt;
              &lt;clouds value="overcast clouds" all="92" unit="%"/&gt;
          &lt;/time&gt;
      &lt;/forecast&gt;
  &lt;/weatherdata&gt;
  </code></pre>