Where is XPathEvaluator located in the Android browser?

We can use the XPathEvaluator object (in javascript) to evaluate the xpath in Safari, Google Chrome, and Safari on Iphone. But on the Android browser, the browser said that the XPathEvaluator object is undefined.

So, how can I get an instance of an XPathEvaluator object, or is there another solution to perform an xpath evaluation in an Android browser?

+1
source share
1 answer

Sorry, there is currently no XPath in Android . If you really need XPath, you will have to use a JavaScript implementation ( for example ). This will be slow, so prefer a DOM bypass if you can.

+1

Source: https://habr.com/ru/post/1742222/


All Articles