Does anybody know if there is an existing implementation of an XPath parser in Java that uses PetitParser? I assume it is more or less impossible to cover all thinkable XPath expressions that are understood by e.g. javax.xml.xpath.XPath but maybe there is an implementation that covers some XPath expressions like
//div[@id='123']//span
or
//ul/li[last()]/../span
or
/bookstore/book[position()>=2 and position() <= (last() - 1)]
to give some examples.