title: How to retrieve all elements between two nodes with a given class name in XPATH
body: <p>I extracted this code from tradingview, I want to get access to all the div elements using xpath between this two elements namely C1 indicator and C2 indicator:
  <a href="https://i.stack.imgur.com/VtuGp.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/VtuGp.png" alt="enter image description here" /></a></p>
  <p>I tried the following but does not seems working. Any thoughts?</p>
  <pre><code>*[following-sibling::div[contains(@data-section-name,'C1 Indicator')] and preceding-sibling::div[contains(@data-section-name,'C2 Indicator')]
  </code></pre>