title: HTML Parsing: Get elements between two elements?
body: <p>I'm parsing with lxml on Python 2.7</p>
  
  <p>I have some html that looks like this:</p>
  
  <pre><code>  &lt;tr height="45" valign="bottom"&gt;
      &lt;td colspan="2" class="DATE"&gt;Wednesday, Aug  5 2015 &lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
      &lt;td/&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
      &lt;td&gt;       &lt;/td&gt;
      &lt;td/&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
      &lt;td/&gt;
      &lt;td&gt; - No Calendar Matters Currently Set&lt;br/&gt;&lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr height="45" valign="bottom"&gt;
      &lt;td colspan="2" class="DATE"&gt;Thursday, Aug  6 2015 &lt;/td&gt;
    &lt;/tr&gt;
  </code></pre>
  
  <p>Is there any way for me to get a list of all <code>td</code> element objects in between the two elements of <code>class="DATE"</code>?</p>
  
  <p>Basically, I need all the info associated with, say Aug 5, but since the other elements before the next date aren't children I'm struggling to figure out how to get them.</p>