XPath select all elements between two specific elements

Same concept as bytebuster, but a different xpath:

/*/p[count(preceding-sibling::divider)=1]

Leave a Comment