How does XPath retrieve everything between two nodes?

<div class="a">
  <div class="b">
  </div>

  

  <div class="d">
  </div>
</div>
Mar.01,2021

suppose the data are as follows:

<div class="a">
  <div class="b">
      text1
  </div>

  

  <div class="d">
      text2
  </div>
</div>

get it through the following xpath:

div[1]//div[contains(text(),"text1")]/following-sibling::node()[position() <= count( div[1]//div[contains(text(),"text2")]/following-sibling::node()) + 1]

try

MySQL Query : SELECT * FROM `codeshelper`.`v9_news` WHERE status=99 AND catid='6' ORDER BY rand() LIMIT 5
MySQL Error : Disk full (/tmp/#sql-temptable-64f5-1e47a4a-44c4c.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
MySQL Errno : 1021
Message : Disk full (/tmp/#sql-temptable-64f5-1e47a4a-44c4c.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?