Tags

Berkeley DB XML and OxygenXML on Mac OSX (part 2)

Necessary preparations explained in Berkeley DB XML and OxygenXML on Mac OSX (part 1).

My initial settings in OxygenXML


The creation of a Berkeley DBXML Data Source in the OxygenXML Preferences:

Data Source Settings
The concrete connection to the DBXML datasource with '/dbxml' as the environment.

Connection
Leading us to following 'Database Explorer' view in the editor.

Database view

Starting to work from inside OxygenXML

XML documents are stored within Berkeley DBXML in files called containers. A container is the equivalent of a database holding the xml files as well as the metadata and indexes.

environment, containers, docsSo let's start to create a container first.

Berkeley DBXML supports two types of containers: 'Wholedoc' or 'Node':
  • Wholedoc containers store XML documents exactly as they are, retaining all document white space.
  • Node containers decompose the documents into individual nodes.
Node documents are faster to query but wholedoc containers are capable of retrieving entire documents more quickly. I use in most cases the 'node' variant.

container creation
The 'Index nodes' causes indices for the container to return nodes rather than documents. This is most of the time the case for me.

container creationNow you can add to this container the xml files you want to index and query.

file added
Next time I cover 'Starting from Berkeley DBXML using the DBXML Shell application'.

Comments