title: How to get a specific part of the data from a rest webservice responce?
body: <p>im new in rest webservices and i try to understand how to work with them.</p>
  
  <p>i define a http get request in C# like this:</p>
  
  <pre><code>static string HttpGet(string url)
          {
              HttpWebRequest req = WebRequest.Create(url)
                                   as HttpWebRequest;
              string result = null;
              using (HttpWebResponse resp = req.GetResponse()
                                            as HttpWebResponse)
              {
                  StreamReader reader =
                      new StreamReader(resp.GetResponseStream());
                  result = reader.ReadToEnd();
              }
              return result;
          }
  </code></pre>
  
  <p>then i use HttpGet in a button to get xml data from <a href="http://api.openweathermap.org/data/2.5/weather?q=London&amp;mode=xml" rel="nofollow">THIS</a> weather webservice (i put the txtOut to findout that my code work).</p>
  
  <pre><code>private void btnGet_Click(object sender, RoutedEventArgs e)
          {
              string test = HttpGet("http://api.openweathermap.org/data/2.5/weather?q=London&amp;mode=xml");
  
              txtOut.Text = test;
          }
  </code></pre>
  
  <p>its geting the whole xml from sending get request to that url:
  <a href="http://api.openweathermap.org/data/2.5/weather?q=London&amp;mode=xml" rel="nofollow">http://api.openweathermap.org/data/2.5/weather?q=London&amp;mode=xml</a></p>
  
  <p>so my question is how can i save specific part of that xml in a variable? like minimum temperature that is in kalvin so i can convert it to Fahrenheit or Celsius.</p>
  
  <p>help me please.</p>