user158678
user158678

Reputation: 1048

does javascript on iphone mobile safari support xpath?

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

Answers (1)

kangax
kangax

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

Related Questions