title: XPaths: Selecting specific elements
body: <p>I want to select p tags under a specific h2 tag from a div that has multiple h2 and p tags.
  Here is the sample code for it:</p>
  
  <pre class="lang-html prettyprint-override"><code>    &lt;div class="main"&gt;
      &lt;h2&gt;&lt;/h2&gt;
      &lt;p&gt;&lt;/p&gt;
      &lt;p&gt;&lt;/p&gt;
      &lt;p&gt;&lt;/p&gt;
      &lt;h2&gt;&lt;/h2&gt;
      &lt;p&gt;&lt;/p&gt;
      &lt;p&gt;&lt;/p&gt;
      &lt;p&gt;&lt;/p&gt;
      &lt;h2&gt;&lt;/h2&gt;
      &lt;p&gt;&lt;/p&gt;
      &lt;p&gt;&lt;/p&gt;
      &lt;p&gt;&lt;/p&gt;
  </code></pre>
  
  <p>and so on...</p>
  
  <p>What would be the XPath for selecting the p tags after the first h2 tag but before the second h2 tags???</p>