getXPathElement and getXPathValue are really only quick shortcuts for simple expressions. They are by no means designed as a complete XPath parser for complex expressions with multiple predicates or result sets.
You will need to use a real xpath parser such a jaxp for that.
Powered by a free Atlassian Confluence Open Source Project License granted to CIP4. Evaluate Confluence today.