Changes

Jump to navigation Jump to search
93 bytes added ,  13:22, 12 October 2011
no edit summary
This tutorial is part of the [[Getting Started]] Section.
It describes how to use the access BaseX [[XQuery]] Processorto execute queries in from the [http://www.oxygenxml.com oXygen XML Editor].You can access the Currently, there are two variants how to use BaseX in oXygen: * Resources in [[database|databases]] from BaseX within oXygencan be opened and modified.and work with * XPath/XQuery expressions can be run by the results as XML[[Query|query processor]] of BaseX. ==Required DownloadsAccess Database Resources== # Start the [[WebDAV]] service first, which will allow you to access all resources via the client/server architecture.* Choose ''File'' → ''Open URL...''.<br/>[[File:Webdav-oxygen01.png]]<br/><br/>* Enter the corresponding user name and password (if needed), the URL of the BaseX WebDAV Server, and then click "Browse".<br/>[[File:Oxygen02.png]]
# [http://files.basex.org/maven/basex.jar basex.jar]: Main code # [http://files.basex.org/maven/basex-api.jar basex-api.jar]: Implementation of the XQJ API # [http://files.basex.org/maven/xqj-api.jar xqj-api.jar]: XQuery for Java (Interface) # [http://www.oxygenxml.com oXygen XML Editor]: Install the oXygen XML Editor on your computer==Perform Queries==
==Setting up==
===Data Source===
# Start oXygen and go to ''Options'' → ''Preferences'' → ''Data Sources''.
# Add a new Data Source with the ''New'' button.
# Enter Name "BaseX" and choose ''XQuery API for Java(XQJ)'' as type.
# Add the three JAR files with the ''Add'' Button.
# Now press ''OK'', and your Data Source is ready.
# Now press ''OK'', and your connection is ready.
===Usage===
The query execution works as follows:
Bureaucrats, editor, reviewer, Administrators
13,554

edits

Navigation menu