I’m looking for a jQuery plugin or anything that will allow me to easily select elements through xpath after parsing an XML using $.parseXML.
There’s no way to use CSS selectors, as that’s a javascript port for a .NET program that already uses XPath selectors.
I’ve seen a lot of questions asked on the matter, but couldn’t see any viable answers, while it looks quite a basic need, and it came as a surprise when I learned it’s not supported.
Thanks!
EDIT:
The problem is NOT parsing the XML, that I know how to do.
The problem is running XPath queries on the parsed XML.
Right now the required support is for Android and iOS native browsers(that are both webkit-based), but Windows Phone might need support soon too.
Well, I’ve found no good answer.
As a viable alternative I’ve found this nice library from GoogleCode: http://goog-ajaxslt.sourceforge.net/
There’s a cross-browser XPath implementation there that can be used independently from the whole framework, and work’s great.