Simple tool to learn XQuery? [closed]

ぃ、小莉子 提交于 2019-12-20 09:13:31

问题


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 XQuery on an XML file thats not possible there. Any good and easy tools for only XQuery stuff for windows? If I search online I could find only big overloaded tools and the most of them are not free. I'm confused.

http://www.w3schools.com/xquery/default.asp
http://demo.exist-db.org/sandbox/sandbox.xql


回答1:


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.




回答2:


eXist-db is a great tool for learning XQuery: exist-db.org.

I'd start by checking out the Basic XQuery Examples on 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.

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.

Another great set of tutorials on XQuery 3.0 (and now 3.1) is the XQuery 3.0 (and 3.1) Features demo.

If you have questions about eXist, I'd recommend joining the exist-open mailing list.




回答3:


There are some XML databases that have a XQuery sandbox or IDE integrated. BaseX is a great example (see 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.

Finally, there's Zorba's sandbox, offering some example queries and XML files.




回答4:


You should try Kernow

It's free and it's open source

They will ask you for donation after 100 times that you run it but it's up to you.

If it's non commercial, it's free




回答5:


and to make the list complete don't forget about MarkLogic

http://community.marklogic.com/

MarkLogic Server is super fast, super scalable and also ships with a web based sandbox



来源:https://stackoverflow.com/questions/9365810/simple-tool-to-learn-xquery

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!