Reputation: 1048
does javascript on iphone mobile safari support xpath? I am using libxml2 to parse xhtml files in objective-c, but want to be able to change my parsing logic on the fly. Was considering using UIWebview's stringByEvaluatingJavaScriptFromString: method.
Upvotes: 2
Views: 1320
Reputation: 39168
I see that version 3.0 has document.evaluate
https://developer.mozilla.org/en/DOM/document.evaluate That's all you should need for XPATH evaluation.
Upvotes: 1