title: C# parse html with xpath
body: <p>I'm trying to parse out stock exchange information whit a simple piece of C# from a HTML document.  The problem is that I can not get my head around the syntax, the <em>tr class="LomakeTaustaVari"</em> gets parsed out but how do I get the second bit that has no tr-class?  </p>
  
  <p>Here's a piece of the HTML, it repeats it self whit different values. </p>
  
  <pre><code>&lt;tr class="LomakeTaustaVari"&gt;
      &lt;td&gt;&lt;div class="Ensimmainen"&gt;12:09&lt;/div&gt;&lt;/td&gt;
      &lt;td&gt;&lt;div&gt;MSI&lt;/div&gt;&lt;/td&gt;
      &lt;td&gt;&lt;div&gt;POH&lt;/div&gt;&lt;/td&gt;
      &lt;td&gt;&lt;div&gt;42&lt;/div&gt;&lt;/td&gt;
      &lt;td&gt;&lt;div&gt;64,50&lt;/div&gt;&lt;/td&gt;
  &lt;/tr&gt;
  &lt;tr&gt;
      &lt;td&gt;&lt;div class="Ensimmainen"&gt;12:09&lt;/div&gt;&lt;/td&gt;
      &lt;td&gt;&lt;div&gt;SRE&lt;/div&gt;&lt;/td&gt;
      &lt;td&gt;&lt;div&gt;POH&lt;/div&gt;&lt;/td&gt;
      &lt;td&gt;&lt;div&gt;156&lt;/div&gt;&lt;/td&gt;
      &lt;td&gt;&lt;div&gt;64,50&lt;/div&gt;&lt;/td&gt;
  &lt;/tr&gt;
  </code></pre>
  
  <p>My C# code:</p>
  
  <pre><code>{
      HtmlAgilityPack.HtmlWeb web = new HtmlWeb();
      HtmlAgilityPack.HtmlDocument doc = web.Load ("https://www.op.fi/op/henkiloasiakkaat/saastot-ja-sijoitukset/kurssit-ja-markkinat/markkinat?sivu=alltrades.html&amp;sym=KNEBV.HSE&amp;from=10:00&amp;to=19:00&amp;id=32453");
  
      foreach (HtmlNode row in doc.DocumentNode.SelectNodes("//tr[@class='LomakeTaustaVari']")) 
      {
          Console.WriteLine(row.InnerText);     
      }
      Console.ReadKey();
  }
  </code></pre>