title: using xpath to select an element after another
body: <p>I've seen similar questions, but the solutions I've seen won't work on the following. I'm far from an XPath expert. I just need to parse some HTML. How can I select the table that follows Header 2. I thought my solution below should work, but apparently not. Can anyone help me out here?</p>
  
  <pre><code>content = """&lt;div&gt;
  &lt;p&gt;&lt;b&gt;Header 1&lt;/b&gt;&lt;/p&gt;
  &lt;p&gt;&lt;b&gt;Header 2&lt;/b&gt;&lt;br&gt;&lt;/p&gt;
  &lt;table&gt;
  &lt;tr&gt;
      &lt;td&gt;Something&lt;/td&gt;
  &lt;/tr&gt;
  &lt;/table&gt;
  &lt;/div&gt;
  """
  
  from lxml import etree
  tree = etree.HTML(content)
  tree.xpath("//table/following::p/b[text()='Header 2']")
  </code></pre>