Evaluate xpath2.0 in node.js

371 Views Asked by At

How to evaluate xpath2.0 in node.js I found saxon-js and xpath2.js libraries in npm. I tried as per the documentation but it didn't work. Give me some examples of how to evaluate xpath2.0 in node.js

1

There are 1 best solutions below

4
On

Saxon-JS does indeed implement XPath 2.0 in Javascript (actually, XPath 3.1), but it's not currently available for Node.js "out of the box". We hope to ship that in the coming months. People have made it work, but only by digging in and getting your hands dirty.

I can't comment on the current state of Sergey Ilinsky's XPath2 implementation.