是否有 xPath 选择器的在线测试器? [英] Is there an online tester for xPath selectors?

查看:28
本文介绍了是否有 xPath 选择器的在线测试器?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我知道有一些在线正则表达式评估器......非常有用,实时匹配.它们就像 RegexBuddy 的网络应用程序.

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

我想知道 xPath 选择器是否有类似的东西?我只是在学习它们,这对我很有价值.

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

是否有在线测试器允许您输入 XML,然后输入 xPath 选择器并匹配(现场会更好,但我怀疑有人编写了 JavaScript 解释器?)?

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?

谢谢

推荐答案

我注意到答案中唯一的在线"检查器似乎有点笨拙.它需要提交到服务器,并且不能正确处理命名空间.

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

我的可以将 xpath 表达式应用于任意 XML 文档并显示结果.它还可以美化或漂亮地打印 XML 文档,并对其应用 XSLT 转换.所有处理都由浏览器完成,应该可以在 IE6+、Firefox、Opera、Chrome 和 Safari 中工作.

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!

这篇关于是否有 xPath 选择器的在线测试器?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆