the public version of the xpath builder