title: C# Xpath Tables
body: <p>I have the xml code that contains to a table with 2 rows.</p>
  
  <pre><code>&lt;table&gt;
         &lt;thead&gt;
                &lt;tr&gt;
                    &lt;td class="num"&gt;test&lt;/td&gt;
                    &lt;td class="num"&gt;test2&lt;/td&gt;
                &lt;/tr&gt;
         &lt;/thead&gt;
  &lt;/table&gt;
  </code></pre>
  
  <p>I am using xpath to grap the data from the row.
  how do i retrieve only the first row data from the table and not all the data.</p>
  
  <p>The xpath code i am using now is:</p>
  
  <pre><code>/table/thead/tr/th[@class='num']
  </code></pre>
  
  <p>And my current output is:</p>
  
  <pre><code>test
  test2
  </code></pre>
  
  <p>What do I have to add in the xpath code so I can select the first row only?</p>