Get information from between two tags in Java HtmlUnit : <pre><code>&lt;span&gt;
&lt;a&gt;&lt;/a&gt;
Hello
&lt;div&gt;A very lot of unnecessary text&lt;/div&gt;
&lt;/span&gt;
</code></pre>

<p>So I want to extract the "Hello" from the web page. I can select the span via XPath, but if I call .getTextContent() on it I also get what's in the div, but I want this unnecessary text not to be extracted. How can I do that?</p>
