title: capturing states between tags in python using xpath
body: <p>I want to capture the word <strong><code>WORD</code></strong> sentence <strong><code>This is what I want.</code></strong> in following format:</p>
  
  <pre><code>&lt;div id="message1"&gt;
  &lt;div class="message2"&gt;
  &lt;strong&gt;WORD&lt;/strong&gt; This is what I want.&lt;br/&gt;
  &lt;/div&gt;              
  &lt;/div&gt;
  </code></pre>
  
  <p>What I tried is:</p>
  
  <pre><code>import requests
  from lxml import html
  cont=session.get('http://mywebsite.com').content
  tree=html.fromstring(cont)
  word=tree.xpath('//div[@class="message2"]/strong')
  sentence=tree.xpath('//div[@class="message2"]/br')
  print word
  print sentence
  </code></pre>
  
  <p>Nothing is printed for me!</p>