title: html agility pack - Select specific node
body: <p>I need to select node which has a specific value:</p>
  
  <pre><code>&lt;td class='formlabel'&gt;Name:&lt;/td&gt;
  </code></pre>
  
  <p>So I have something like this: </p>
  
  <pre><code>HtmlNode selectedNote = html.DocumentNode.SelectSingleNode("//td[@class='formlabel'][starts-with(., 'Name:')]");
  </code></pre>
  
  <p>This works. But the problem is that this is a selection with starts-with so for example if I have code like this:</p>
  
  <pre><code>&lt;td class='formlabel'&gt;Name: some text&lt;/td&gt;
  </code></pre>
  
  <p>It will also select the node. I need something that will select node only if this exists </p>
  
  <pre><code>&lt;td class='formlabel'&gt;Name:&lt;/td&gt;
  </code></pre>
  
  <p>So it will select node which has only innerText equals "Name:"</p>
  
  <p>Hmm...Is this possible. Thank you very much.</p>