title: XPath not working as expected
body: <p>I have an XML document in this format:</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="utf-8" ?&gt;
  &lt;SupportedServices&gt;
    &lt;Service&gt;
      &lt;name&gt;Google Weather&lt;/name&gt;
      &lt;active&gt;Yes&lt;/active&gt;
    &lt;/Service&gt;
     ...
  &lt;/SupportedServices&gt;
  </code></pre>
  
  <p>And I'm trying to parse the XML file like so:</p>
  
  <pre><code>public void InitializeDropDown(string XmlFile, string xpath)
  {
      XmlDocument doc = new XmlDocument();
      doc.Load(XmlFile);
  
      var rootNode = doc.DocumentElement;
  
      var serviceList = rootNode.SelectNodes(xpath);
  
      Parallel.ForEach(serviceList.Cast&lt;XmlNode&gt;(), service =&gt;
      {
          if (Properties.Settings.Default.ServiceActive &amp;&amp;
              Properties.Settings.Default.ServiceName == service.InnerText)
          {
              WeatherServicesCBO.Items.Add(service.InnerText);
          }
      });
  }
  </code></pre>
  
  <p>The issue I'm having is both values (name &amp; active) are selected so it would look like <strong>Google WeatherYes</strong>, when All I'm wanting is <strong>Google Weather</strong>. Can someone tell me what's wrong with my XPath (which is here):</p>
  
  <pre><code>InitializeDropDown("SupportedWeatherServices.xml", "descendant::Service[name]");
  </code></pre>