XPath select all elements between two specific elements July 31, 2023 by Tarik Same concept as bytebuster, but a different xpath: /*/p[count(preceding-sibling::divider)=1]