title: Using Xpath and HtmlAgilityPack to find all elements with innertext containing a specific word or words
body: <p>I am trying to build a simple search-engine using HtmlAgilityPack and Xpath with C# (.NET 4).
  I want to find every node containing a userdefined searchword, but I can't seem to get the XPath right. 
  For Example:</p>
  
  <pre><code>&lt;HTML&gt;
   &lt;BODY&gt;
    &lt;H1&gt;Mr T for president&lt;/H1&gt;
     &lt;div&gt;We believe the new president should be&lt;/div&gt;
     &lt;div&gt;the awsome Mr T&lt;/div&gt;
     &lt;div&gt;
      &lt;H2&gt;Mr T replies:&lt;/H2&gt;
       &lt;p&gt;I pity the fool who doesn't vote&lt;/p&gt;
       &lt;p&gt;for Mr T&lt;/p&gt;
     &lt;/div&gt;
    &lt;/BODY&gt;
  &lt;/HTML&gt;
  </code></pre>
  
  <p>If the specified searchword is "Mr T" I'd want the following nodes: <code>&lt;H1&gt;</code>, The second <code>&lt;div&gt;</code>, <code>&lt;H2&gt;</code> and the second <code>&lt;p&gt;</code>.
  I have tried numerous variants of <code>doc.DocumentNode.SelectNodes("//text()[contains(., "+ searchword +")]");</code> but I always seem to wind up with every single node in the entire DOM.</p>
  
  <p>Any hints to get me in the right direction would be very appreciated.</p>