views:

60

answers:

1

Hi everyone here.

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

So how can I get a instance of XPathEvaluator object, or is there any other solution to perform xpath evaluation on android browser?

A: 

Sorry, there is currently no XPath in Android. If you really need XPath you'll have to use a JavaScript implementation (eg). This'll be slow, so prefer DOM traversal if you can.

bobince
Thanks bobince. Hope google will add xpath support soon.
apoclast