xml editor

Supported platforms

Compatible with Windows7 & Mac OS X Snow Leopard

Ready for XML Editor data server software
W3C Member

Oracle Berkeley DB XML support

Introduction

This tutorial shows you, step by step, how to configure the Oracle Berkeley DB XML support in <oXygen/> XML Editor, browse and edit resources stored in the database, as well as writing, running and debugging XQuery interrogations.

Oracle Berkeley DB XML is an open source, embeddable XML database with XQuery-based access to documents stored in containers and indexed based on their content. Oracle Berkeley DB XML is built on top of Oracle Berkeley DB and inherits its rich features and attributes. A detailed description can be found at: http://www.oracle.com/database/berkeley-db/xml/index.html

The tutorial assumes that you have a basic knowledge of databases, XML technologies and of <oXygen/> XML Editor tool. The explanations and screen shots are given for the standalone version of the <oXygen/> XML Editor. However the same set of features are available in Eclipse plugin version of the product with minor interface differences.

How to Configure the Oracle Berkeley DB XML Support in <oXygen/>

There are two notions you need to understand in order to configure the Oracle Berkeley DB XML support in <oXygen/>: the data source and the connection.

A data source defines all that is needed in order to have a connection to the database. <oXygen/> currently supports Oracle Berkeley DB XML version 2.5 or higher.

Go to <oXygen/>'s Preferences->Data Sources and press the New button in order to add a new data source. Insert a data source name (make sure that each data source has an unique name) and select the Berkeley DBXML type from driver type combo box.

Berkeley DataSource Dialog

You need to add the following Berkeley DB XML specific driver file:

  • db.jar
  • dbxml.jar

These jar files are found in the jar subdirectory of your Berkeley DB XML installation directory (for example on Windows C:\Program Files\Oracle\Berkeley DB XML <version>)

More information about configuring a Berkeley DB XML datasource can be found in the user manual:http://www.oxygenxml.com/doc/ug-oxygen/native-xml-database-support.html

Once you have created the data source you may proceed further by defining one or more connection based on it. The connections can be configured on the same Preferences->Data Source page.

Berkeley Connection Dialog

You need to choose a unique connection name and set the Data Source combo box to the already configured Berkeley DB XML data source. In the Environment home directory field you need to specify a directory location where your existing environment is stored or a directory where you would like to create a new environment.

Datasource Explorer View

Once you finished the configuration of the connection you are able to browse the database content using the Datasource Explorer view from the Database perspective.

Each node from the datasource explorer view features a set of operations that are available on the contextual menu. One of the operations available on the connection node is the possibility to add a new container.

Add Container Dialog

The contextual menu of a container node features operations like add resource, rename, delete or edit indices.

A database resource node features the following list of operations: rename, move, delete or open the content to be edited in <oXygen/>. When the editor content is saved, the changes are stored back in the database.

XQuery editing support

Berkeley DB XML supports XQuery interrogations over the stored XML content. For example if you like to create a XQuery to generate a report with the billing contact data from the latest purchase notifications, you can open an XQuery editor (New->XQuery), configure the transformation scenario to match the Berkeley DB XML connection for the transformer field, write the XQuery and then execute it.

The XQuery editor features a new XQuery outliner as well as powerful content completion including descriptions of Berkeley DB XML predefined functions.

XQuery Debugger for the Oracle Berkeley DB XML database

The debugging interface of Oracle Berkeley XML DB 2.5 database has been integrated with the <oXygen/> XQuery Debugger and Profiler. All the debugging and profiling views (stack, trace, conditional breakpoints, breakpoints, hotspots, invocation tree, etc..) are available.

When entering in the XQuery Debugging mode <oXygen/> provides a special layout that display the XML source (optional) and the XQuery documents side by side. It can also show the debugging output and specific XQuery debugging views and toolbars that allow you to set breakpoints, inspect variable bindings, evaluate expressions in the request context.

XQuery Debugging Interface

More details about the <oXygen/> Xquery Debugger can be found here: http://www.oxygenxml.com/xquery_debugger.html

Two special views (Hotspots and Invocation Tree) allows profiling of the XQuery execution.

More details about the <oXygen/> Xquery Profiler can be found here: http://www.oxygenxml.com/doc/ug-oxygen/working-with-XSLT-profiler.html

News
Upcoming Events:
Balisage 2010: The Markup Conference
August 3-6, 2010
Montréal, Canada
TEI Members Meeting 2010
TEI Members Meeting
November 11-14, 2010
Zadar, Croatia
DITA Europe 2010 Conference
DITA Europe 2010
November 15-16, 2010
Vienna, Austria
Buy <oXygen/> License
XML Editor
Enterprise$449
Professional$349
Academic & SMP$64
XML Author
Enterprise$269
Professional$199
XML Diff
Professional$99  $59
DITA 1.2 Support
Most Wanted Features
Support Life Program
Support life
Syncro SVN Client
Quotes
XML Editor | XML Author | WYSIWYG Editors | Schema Editor | XSD Documentation | XSL/XSLT Editor | XQuery | XML Databases | SVN Client
© 2002-2010 SyncRO Soft Ltd. All rights reserved. | Sitemap | Privacy Policy | This website was created & generated with <oXygen/>® XML Editor