title: What's wrong with my Xpath?
body: <p>I have an xml file and I am trying to get a list of all of a particular node using c#.</p>
  
  <p>A trimmed down version of my xml is:</p>
  
  <pre><code>&lt;file&gt;
      &lt;AnotherNode&gt;
      &lt;/AnotherNode&gt; 
      &lt;ROWS&gt; 
          &lt;row&gt; 
              &lt;code&gt;Code1&lt;/code&gt; 
              &lt;R&gt;1&lt;/R&gt; 
              &lt;G&gt;2&lt;/G&gt; 
              &lt;B&gt;3&lt;/B&gt; 
          &lt;/row&gt; 
          &lt;row&gt; 
              &lt;code&gt;Code2&lt;/code&gt; 
              &lt;R&gt;1&lt;/R&gt; 
              &lt;G&gt;2&lt;/G&gt; 
              &lt;B&gt;3&lt;/B&gt; 
          &lt;/row&gt;
      &lt;/ROWS&gt;
  &lt;/file&gt;
  </code></pre>
  
  <p>There are multiple "row" nodes and I want a list of all the codes from within those nodes</p>
  
  <p>The XPath I am using is: </p>
  
  <pre><code>/file/ROWS/row/code
  </code></pre>
  
  <p>with this code:</p>
  
  <pre><code>XmlDocument doc = new XmlDocument();
  doc.Load(xml);
  XmlNode root = doc.DocumentElement;
  XmlNodeList nodeList = root.SelectNodes(xpath here);
  foreach (XmlNode code in nodeList)
  {
  }
  </code></pre>
  
  <p>but I am returning no nodes.</p>
  
  <p>What am I doing wrong?</p>
  
  <p>Thanks.</p>