title: Jsoup selecting only text within a div with other elements
body: <p>I have <code>div</code> with a lot of inner mumbo jumbo like this:</p>
  
  <pre><code>&lt;div&gt;sometext
  
     &lt;p&gt;
  
     &lt;/p&gt;sometext
  
     &lt;div&gt;
  
     &lt;/div&gt;sometext
  
  &lt;/div&gt;
  </code></pre>
  
  <p>and I need to choose the text that is in the parent <code>div</code> without all the text in the children elements. I cannot use <code>.not()</code> to get rid of the divs inside. I cannot get the children elements either because it eliminates the text inside and returns only the inside elements. So basically I need the text only without any of the children elements.</p>
  
  <p>How do I do that?</p>