title: Get a specific value in an xml document with c#
body: <p>I want to grab one specific value within an XML document at a url, I have managed to get a list of all values, but I'm not sure how to choose the specific value. The XML document is as follows;</p>
  
  <pre><code>&lt;evec_api version="2.0" method="marketstat_xml"&gt;
   &lt;marketstat&gt;
    &lt;type id="37"&gt;
     &lt;buy&gt;
      &lt;volume&gt;291092912&lt;/volume&gt;
      &lt;avg&gt;137.11&lt;/avg&gt;
      &lt;max&gt;156.06&lt;/max&gt;
      &lt;min&gt;53.46&lt;/min&gt;
      &lt;stddev&gt;31.00&lt;/stddev&gt;
      &lt;median&gt;140.28&lt;/median&gt;
      &lt;percentile&gt;156.05&lt;/percentile&gt;
     &lt;/buy&gt;
     &lt;sell&gt;
      &lt;volume&gt;273042044&lt;/volume&gt;
      &lt;avg&gt;177.43&lt;/avg&gt;
      &lt;max&gt;339.00&lt;/max&gt;
      &lt;min&gt;166.22&lt;/min&gt;
      &lt;stddev&gt;30.83&lt;/stddev&gt;
      &lt;median&gt;170.38&lt;/median&gt;
      &lt;percentile&gt;166.26&lt;/percentile&gt;
     &lt;/sell&gt;
     &lt;all&gt;
      &lt;volume&gt;574134956&lt;/volume&gt;
      &lt;avg&gt;154.64&lt;/avg&gt;
      &lt;max&gt;339.00&lt;/max&gt;
      &lt;min&gt;43.00&lt;/min&gt;
      &lt;stddev&gt;42.21&lt;/stddev&gt;
      &lt;median&gt;156.05&lt;/median&gt;
      &lt;percentile&gt;69.98&lt;/percentile&gt;
     &lt;/all&gt;
    &lt;/type&gt;
   &lt;/marketstat&gt;
  &lt;/evec_api&gt;
  </code></pre>
  
  <p>The specific value I want is the min sell value, being 166.22. My code at current, which just retrieves all values in the document is </p>
  
  <pre><code>private void Form1_Load(object sender, EventArgs e)
  {
      string xmlDocPath = "http://api.eve-central.com/api/marketstat?typeid=37&amp;regionlimit=10000002&amp;usesystem=30000142";
      XmlTextReader xmlReader = new XmlTextReader(xmlDocPath);
      while (xmlReader.Read())
      {
          if (xmlReader.NodeType == XmlNodeType.Text)
          {
              textBox1.AppendText(xmlReader.Value + "\n");
          }               
      }
  }
  </code></pre>
  
  <p>I've tried a few different methods, like just throwing it all in a text box and taking the specific line, but that seems like a really silly solution. Most of the tutorials use console however that doesn't work for me. I feel it's probably a simple solution, but I'm yet to find one that works. Also, being fairly new to this, if there is anything terribly inefficient about this code, feel free to point it out.</p>