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:

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

Leading us to following 'Database Explorer' view in the editor.
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.

So 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.

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

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

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