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条回答
Root(大扎)
2楼-- · 2019-01-16 00:50

This is not an online tool; instead it's a Windows app, more along the lines of RegexBuddy, but for XPath.

XPathVisualizer.

screen shot http://i29.tinypic.com/1zwp5ix.jpg

查看更多
走好不送
3楼-- · 2019-01-16 00:50

You can also use Notepad++ with it's XMLTools plugin - it has xPath evaluator

查看更多
手持菜刀,她持情操
4楼-- · 2019-01-16 00:50

If you're on Firefox, you can use Firebug + Firefinder, which enable you to filter elements based on XPath expressions, and even post the matched code to jsbin in a snap.

查看更多
爷的心禁止访问
5楼-- · 2019-01-16 00:52

I notice that the only "online" checker in the answers seems a bit clunky. It requires submission to a server, and it doesn't handle namespaces properly.

I thought I could do better, and that such a tool would be quite useful, so I made one. I realize it is slightly self-promoting to mention it here, but it does specifically answer the question, I think!

http://chris.photobooks.com/xml/default.htm

Mine can apply an xpath expression to an arbitrary XML document and display the results. It can also beautify, or pretty-print an XML document, and apply an XSLT transformation to it. All processing is done by the browser, and it should work in IE6+, Firefox, Opera, Chrome, and Safari.

Please let me know if you encounter any issues with it!

查看更多
霸刀☆藐视天下
6楼-- · 2019-01-16 00:52
登录 后发表回答