title: Reading xml child nodes in foreach loop
body: <p>I want to read all the nodes in the xml. Reading the top node without the loop goes fine, but I want to read all the nodes to get all the different temperatures for each city. This is the xml:</p>
  
  <pre><code>&lt;servers&gt;
    &lt;server name ="Stockholm"&gt;
      &lt;!-- data from Google weather --&gt;
      &lt;name&gt;Stockholm (Google)&lt;/name&gt;&lt;!--Läser denna rad för tillfället--&gt;
      &lt;url&gt;http://www.yr.no/place/sweden/stockholm/stockholm/forecast.xml&lt;/url&gt;
      &lt;xpath&gt;/weatherdata/forecast/tabular/time/temperature&lt;/xpath&gt;
    &lt;/server&gt;
    &lt;server name ="Göteborg"&gt;
      &lt;name&gt;Göteborg (Google)&lt;/name&gt;    &lt;url&gt;http://www.yr.no/place/Sweden/V%C3%A4stra_G%C3%B6taland/Gothenburg/forecast.xml&lt;/url&gt;
      &lt;xpath&gt;/weatherdata/forecast/tabular/time/temperature&lt;/xpath&gt;
    &lt;/server&gt;
    &lt;server name =" Malmö"&gt;
      &lt;name&gt;Malmö (Google)&lt;/name&gt;
      &lt;url&gt;http://www.yr.no/place/sweden/scania/malmö/forecast.xml&lt;/url&gt;
      &lt;xpath&gt;/weatherdata/forecast/tabular/time/temperature&lt;/xpath&gt;
    &lt;/server&gt;
  &lt;/servers&gt;
  </code></pre>
  
  <p>My code so far:</p>
  
  <pre><code>XmlDocument serverDoc = new XmlDocument();
  serverDoc.Load("ServerUrls.xml");
  XmlNodeList xml = 
  serverDoc.SelectNodes("servers/server");
  foreach (var node in xml)
  {
  
  }
  </code></pre>
  
  <p>I know its not much. But cant seem to find information I can use properly. Been to MSDN and tried to figure it out from there, but to no result. </p>
  
  <p>Thankful for all the help I can get.</p>
  
  <p><a href="https://i.stack.imgur.com/jdpWG.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/jdpWG.png" alt="enter image description here"></a></p>