title: XPATH - select range of nodes
body: <p>I have the following code:</p>
  
  <pre><code>&lt;div id="mydiv"&gt;
      &lt;h1&gt;Some title&lt;/h1&gt;
      &lt;p&gt;don't select me&lt;/p&gt;
      &lt;p&gt;select me 1&lt;/p&gt;
      &lt;p&gt;select me 2&lt;/p&gt;
      &lt;p&gt;select me 3&lt;/p&gt;
      &lt;p&gt;don't select me&lt;/p&gt;
  &lt;/div&gt;
  </code></pre>
  
  <p>I need to select p[2] through p[4].</p>
  
  <p>Tried with this code and it didn't work:</p>
  
  <pre><code>'.//*[@id="mydiv"]/p[preceding-sibling::p[4] and following-sibling::p[2]]'
  </code></pre>