xml 学习 XQuery 的简单工具?
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/9365810/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
Simple tool to learn XQuery?
提问by Revo
I started playing around with XQuery. On [w3schools][1] its a good tutorial. I just have some problems: I cannot test the stuff on the site. I found an online XQuery([this link][2]) and its nice to play with it, but if I would like to use the XQueryon an XMLfile thats not possible there. Any good and easy tools for only XQuerystuff for windows? If I search online I could find only big overloaded tools and the most of them are not free. I'm confused.
我开始玩弄XQuery. 在 [w3schools][1] 上,这是一个很好的教程。我只是有一些问题:我无法测试网站上的内容。我在网上找到了一个XQuery([这个链接][2]),很高兴能用它,但如果我想XQuery在一个XML文件上使用它,那是不可能的。任何仅XQuery适用于 Windows 的好工具?如果我在网上搜索,我只能找到大的超载工具,而且大多数都不是免费的。我糊涂了。
http://www.w3schools.com/xquery/default.asp
http://demo.exist-db.org/sandbox/sandbox.xql
http://www.w3schools.com/xquery/default.asp
http://demo.exist-db.org/sandbox/sandbox.xql
回答by Christian Grün
Feel free to check out BaseX; it has an interactive frontend and is easy to use: http://basex.org/. You can turn on the option "Realtime Execution" to execute queries with each key click.
请随意查看 BaseX;它有一个交互式前端并且易于使用:http: //basex.org/。您可以打开“实时执行”选项以通过每次键单击来执行查询。
回答by joewiz
eXist-db is a great tool for learning XQuery: exist-db.org.
eXist-db 是学习 XQuery 的绝佳工具:exist-db.org。
I'd start by checking out the Basic XQuery Exampleson the eXist-db.org website. This suite of interactive tutorials shows you example XQuery source code based on already-loaded XML files, such as Shakespeare plays, and lets you run each query in the tutorial. You can also edit the sample queries to see how your changes alter the results. Just click on the "Edit" button beneath each source code sample, and it'll take you to eXide, a web-based interactive query editor, to edit the queries and run them. (As Adam notes in the comment below, eXide is a great tool in its own right for learning XQuery.) While you can't upload your own XML to the copy of eXide that runs on eXist-db.org, you can browse the included files (click on Open and log in with username guest and password guest) and craft sample queries against the files.
我首先查看eXist-db.org 网站上的Basic XQuery 示例。这组交互式教程向您展示了基于已加载的 XML 文件(例如莎士比亚戏剧)的示例 XQuery 源代码,并允许您运行教程中的每个查询。您还可以编辑示例查询以查看您的更改如何改变结果。只需单击每个源代码示例下方的“编辑”按钮,它就会带您进入eXide,一个基于 Web 的交互式查询编辑器,用于编辑查询并运行它们。(正如 Adam 在下面的评论中所指出的,eXide 本身就是学习 XQuery 的绝佳工具。)虽然您无法将自己的 XML 上传到在 eXist-db.org 上运行的 eXide 副本,但您可以浏览包含的文件(单击打开并使用用户名来宾和密码来宾登录)并针对文件制作示例查询。
If you want to run queries on your own files, just download and install the eXist from exist-db.org; then you'll have eXide and the ability to upload your own XML for querying, as well as all of eXist's built-in documentation.
如果您想对自己的文件运行查询,只需从exist-db.org下载并安装eXist ;那么您将拥有 eXide 和上传您自己的 XML 以进行查询的能力,以及所有 eXist 的内置文档。
Another great set of tutorials on XQuery 3.0 (and now 3.1) is the XQuery 3.0 (and 3.1) Features demo.
另一组关于 XQuery 3.0(现在是 3.1)的很棒的教程是XQuery 3.0(和 3.1)特性演示。
If you have questions about eXist, I'd recommend joining the exist-openmailing list.
如果您对 eXist 有任何疑问,我建议您加入exists -open邮件列表。
回答by tohuwawohu
There are some XML databases that have a XQuery sandbox or IDE integrated. BaseXis a great example (see christians answer).
有一些 XML 数据库集成了 XQuery 沙箱或 IDE。BaseX是一个很好的例子(参见christians answer)。
Another remarkable tool is eXist-db's eXide IDE. The version I'm linking to here lets you run queries from any browser, though for security reasons you can't upload files to their server. To use eXide on your own XML files, you can install eXist locally (it's quite easy), and then you can create or import XML files and test your XQueries on them.
另一个出色的工具是eXist-db的eXide IDE。我在这里链接的版本允许您从任何浏览器运行查询,但出于安全原因您不能将文件上传到他们的服务器。要在您自己的 XML 文件上使用 eXide,您可以在本地安装 eXist(这很容易),然后您可以创建或导入 XML 文件并在它们上测试您的 XQueries。
Finally, there's Zorba's sandbox, offering some example queries and XML files.
回答by Marc
回答by Jim Fuller
and to make the list complete don't forget about MarkLogic
为了使列表完整,不要忘记 MarkLogic
http://community.marklogic.com/
http://community.marklogic.com/
MarkLogic Server is super fast, super scalable and also ships with a web based sandbox
MarkLogic Server 速度超快,可扩展性超强,还附带基于 Web 的沙箱

