title: XPath SelectNodes in .NET
body: <pre><code>&lt;Document&gt;
    &lt;A&gt; 
      &lt;B&gt; 
        &lt;C&gt;&lt;/C&gt;
      &lt;/B&gt;
    &lt;/A&gt;
    &lt;E&gt;
     &lt;F&gt;
      &lt;C&gt;&lt;/C&gt;
     &lt;/F&gt;
     &lt;G&gt;
      &lt;C&gt;&lt;/C&gt;
    &lt;/G&gt;
   &lt;/E&gt;
  &lt;/Document&gt;
  </code></pre>
  
  <p>If i load the above XML into an XmlDocument and do a SelectSingleNode on A using the XPath query //C</p>
  
  <pre>
  XmlNode oNode = oDocument.SelectSingleNode("E");
  XmlNodeList oNodeList = oNode.SelectNodes("//C");
  </pre>
  
  <p>why does it return nodes from Under B when what I would expect to happen would that it only return nodes from under E</p>
  
  <p>Make sense?</p>
  
  <p>Edit : How would i make it only return from that node onwards?</p>