title: Correct XPath query to fetch div inner text
body: <p>I am using XPath to query into HTML document where there is following div has text:</p>
  
  <pre><code>&lt;div class="h1"&gt;2008 Honda Accord Coupe&lt;small&gt; — Wuse II&lt;/small&gt;&lt;/div&gt;
  </code></pre>
  
  <p>I wanted to fetch only the inner text of the <code>&lt;div class="h1"&gt;2008 Honda Accord Coupe</code> and not include the <code>&lt;small&gt;inner text&lt;/small&gt;</code></p>
  
  <p>I am making following XPath query: <code>//div[@class='h1']</code> which is definitely returning entire <code>&lt;div&gt;...&lt;/div&gt;</code> node. </p>
  
  <p>How can I only fetch portion without <code>&lt;small&gt;...&lt;/small&gt;</code></p>
  
  <p>thanks</p>