MarkLogic Database Connections
Oxygen XML Editor plugin Enterprise edition includes support for MarkLogic database connections. Once you configure a MarkLogic connection, you can use the Data Source Explorer view to display all the application servers that are configured on the MarkLogic server. You can expand each application server and view all of its configured modules, and the Data Source Explorer view allows you to open and edit these modules.
Note
xdmp:directory-create()
. For example, for two documents with the
/code/modules/main.xqy
and
/code/modules/imports/import.xqy
IDs, run the following
query:(xdmp:directory-create('/code/modules/'), xdmp:directory-create('/code/modules/imports/'))
For more information about directory properties, go to: http://blakeley.com/blogofile/2012/03/19/directory-assistance/.
MarkLogic and XQuery
MarkLogic connections can be used in conjunction with XQuery scripts to debug and solve problems with XQuery transformations. XQuery modules can also be validated using a MarkLogic server to allow to you to spot possible issues without the need of actually executing the XQuery script.
When debugging XQuery files with MarkLogic, you can use the Data Source Explorer view to open the files from the application server that is involved in the debugging process. By using the Data Source Explorer view, any imported modules are better identified by the MarkLogic server. You can also use step actions and breakpoints in the modules to help identify problems.
Modules Container
For each Application server (for example: Bill (HTTP port:8060)), you have access to the XQuery modules that are visible to that server. When editing, executing, or debugging XQuery it is recommended to open the XQuery files from this Modules container.
Note
Requests Container
Each MarkLogic application server includes a Requests container. In this container, Oxygen XML Editor plugin displays both queries that are stopped for debugging purposes and queries that are still running. To clean up the entire Requests container at the end of your session, right-click it and use the Cancel all requests action.