Chapter 5.  Upgrading Berkeley DB XML

Table of Contents

Library Version Information
Upgrading Berkeley DB XML Applications to 2.3
Upgrading 2.x-based Containers
Upgrading Berkeley DB XML Applications to 2.2
Upgrading 2.0- or 2.1-based Containers
Change in dbxml shell default container type
Upgrading Berkeley DB XML Applications to 2.1
Upgrading existing containers
Upgrading Berkeley DB XML 1.2.X applications to Berkeley DB XML 2.0
New and Changed Features in 2.0
Migrating Berkeley DB XML C++ Applications
Migrating Berkeley DB XML Java Applications
Migrating Berkeley DB XML Data to 2.0

This chapter describes how to upgrade from one version of BDB XML to another, when an upgrade is necessary.

Library Version Information

Each release of the Berkeley DB XML library has a major version number, a minor version number, and a patch number.

The major version number changes only when major portions of the Berkeley DB XML functionality have been changed. In this case, it may be necessary to significantly modify applications in order to upgrade them to use the new version of the library.

The minor version number changes when Berkeley DB XML interfaces have changed, and the new release is not entirely backward-compatible with previous releases. To upgrade applications to the new version, they must be recompiled and potentially, minor modifications made (for example, the order of arguments to a function might have changed).

The patch number changes on each release. If only the patch number has changed in a release, applications do not need to be recompiled, and they can be upgraded to the new version by installing the new version of a shared library or by relinking the application to the new version of a static library.

Internal Berkeley DB XML interfaces may change at any time and during any release, without warning. This means that the library must be entirely recompiled and reinstalled when upgrading to new releases of the library because there is no guarantee that modules from the current version of the library will interact correctly with modules from a previous release.

To retrieve the Berkeley DB XML version information, applications should use the DbXml::dbxml_version function. In addition to the previous information, the DbXml::dbxml_version function returns a string encapsulating the version information, suitable for display to a user.