For example, imagine many <div>...</div> blocks within an html page and want to select/find only the <div>...</div> which follows a <h1>foobar</h1>:
<div>not important </div>
<h1>foobar</h1>
<div>important stuff</div>
<div>not important</div>
This is a simplified example of a general question.
I think this would do it: