title: How to get text between two Elements in DOM object?
body: <p>I'm using JSoup to parse this HTML content:</p>
  
  <pre><code>&lt;div class="submitted"&gt;
      &lt;strong&gt;&lt;a title="View user profile." href="/user/1"&gt;user1&lt;/a&gt;&lt;/strong&gt; 
      on 27/09/2011 - 15:17 
      &lt;span class="via"&gt;&lt;a href="/goto/002"&gt;www.google.com&lt;/a&gt;&lt;/span&gt;
  &lt;/div&gt; 
  </code></pre>
  
  <p>Which looks like this in web browser: </p>
  
  <pre><code>user1 on 27/09/2011 - 15:17 www.google.com
  </code></pre>
  
  <p>The username and the website can be parsed into variables using this:</p>
  
  <pre><code>String user    = content.getElementsByClass("submitted").first().getElementsByTag("strong").first().text(); 
  String website = content.getElementsByClass("submitted").first().getElementsByClass("via").first().text();
  </code></pre>
  
  <p>But I'm unsure of how to get the "on 27/09/2011 -15:17" into a variable, if I use</p>
  
  <pre><code>String date = content.getElementsByClass("submitted").first().text();
  </code></pre>
  
  <p>It also contains username and the website??? </p>
  
  <p>Any help would be appreciated. Thanks in advanced.</p>