title: XPath contains(text(),'some string') doesn't work when used with node with more than one Text subnode
body: <p>I have a small problem with XPath contains with dom4j ...</p>
  <p>Let's say my XML is</p>
  <pre><code>&lt;Home&gt;
      &lt;Addr&gt;
          &lt;Street&gt;ABC&lt;/Street&gt;
          &lt;Number&gt;5&lt;/Number&gt;
          &lt;Comment&gt;BLAH BLAH BLAH &lt;br/&gt;&lt;br/&gt;ABC&lt;/Comment&gt;
      &lt;/Addr&gt;
  &lt;/Home&gt;
  </code></pre>
  <p>Let's say I want to find all the nodes that have ABC in the text given the root Element...</p>
  <p>So the XPath that I would needed to write would be</p>
  <p><code>//*[contains(text(),'ABC')]</code></p>
  <p>However this is not what dom4j returns .... is this a dom4j problem or my understanding how XPath works, since that query returns only the <code>Street</code> element and not the <code>Comment</code> element?</p>
  <p>The DOM makes the <code>Comment</code> element a composite element with four tags two</p>
  <pre><code>[Text = 'XYZ'][BR][BR][Text = 'ABC'] 
  </code></pre>
  <p>I would assume that the query should still return the element since it should find the element and run contains on it, but it doesn't ...</p>
  <p>The following query returns the element, but it returns far more then just the element – it returns the parent elements as well, which is undesirable to the problem.</p>
  <pre><code>//*[contains(text(),'ABC')]
  </code></pre>
  <p>Does any one know the XPath query that would return just the elements <code>&lt;Street/&gt;</code> and <code>&lt;Comment/&gt;</code> ?</p>