Is there an online tester for xPath selectors? [cl

2019-01-16 00:18发布

I know there are some online regex evaluators.. very useful, matching in real time. They are like web applications of RegexBuddy.

I was wondering if there is a similar thing for xPath selectors? I am just learning them and it would be valuable to me.

Is there an online tester that allows you to input XML and then an xPath selector and match (live would be better, but I doubt someone has written a JavaScript interpreter?) them?

Thanks

标签: xml xslt xpath
11条回答
别忘想泡老子
2楼-- · 2019-01-16 00:29
走好不送
3楼-- · 2019-01-16 00:29

Remove It Permanently, a firefox extension available on AMO, has such visualization functions. It would be nice if it had firebug type power for the slightly advanced adblocker.

screenshot http://i49.tinypic.com/n65a3d.jpg

查看更多
Summer. ? 凉城
5楼-- · 2019-01-16 00:34

Yep! Try the XPath Checker extension for Firefox. It's a handy tool.

查看更多
相关推荐>>
6楼-- · 2019-01-16 00:38

Edit: The XPath Visualizer for IE now has a new, safer home, thanks to the kindness of Lars Huttar. Also there is the XPath Visualizer for FF.

The XPath Visualizer has been available for more than 10 years and has helped thousands of people learn XPath the fun way. Available for IE and for FireFox.

The XPath Visualizer is a popular tool for learning XPath by playing with XPath expressions. Free and open source.

Allows any XPath expression to be evaluated against a given XML document and displays the results hi-lighted in the xml document (if they are node(s)) or in a separate box (if the results are atomic values).

Allows xsl:variable-s to be defined and then used in XPath expressions.

Allows xsl:key-s to be defined and then referenced by key() functions within XPath expressions.

查看更多
唯我独甜
7楼-- · 2019-01-16 00:43

I found the following tool the most helpful.

Allans Online XPath Tester

The other tools mentioned below either required a particular browser or had some issue with loading xml or using some of the more obscure XPath expressions I was using. This tool did not.

查看更多
登录 后发表回答