Home > Online Product Documentation > Table of Contents > Configuring the BerkeleyDBXML.xml File Configuring the BerkeleyDBXML.xml FileYou need to configure the BerkeleyDBXML.xml file in order to be able to save XML documents back to a Berkeley DB XML container. Until you configure the BerkeleyDBXML.xml file as described in this section, any files you read from Berkeley DB XML are marked read-only and cannot be written back to Berkeley DB XML. The Berkeley Database EnvironmentThe Berkeley database has the concept of a database environment. The database environment is typically a directory that contains the log and lock files that provide support for transaction processing. This directory may also contain databases - files that contain user data. The containers in which Berkeley DB XML stores XML documents are examples of Berkeley databases and typically, though not always, have a .dbxml extension. To be able to determine what database environments exist in Berkeley DB XML, and which ones are associated with which containers, you need to These files are installed in the \bin\lib\sleepycat directory where you installed Stylus Studio ( c:\Program Files\Stylus Studio 2007 XML Professional Suite\bin\lib\sleepycat, for example). The BerkeleyDBXML.xml Configuration FileThe BerkeleyDBXML.xml configuration file contains elements that allow you to specify Berkeley DB XML database environments and directories: A finished BerkeleyDBXML.xml configuration file might look like this:
Omitting <dbdir> and <dbenv> elements
In some cases, it is not necessary do have any
If you use the
Specifying <dbdir> pathnames
Pathnames you specify for
The validate attribute
In Berkeley DB XML Version 2.0.7 and 2.0.9, the
How to Configure BerkeleyDBXML.xmlTo configure BerkeleyDBXML.xml:
1. Open the
BerkeleyDBXML.xml configuration file in Stylus Studio.
2. Specify the
<dbenv> and
<dbdir> elements as described in
The BerkeleyDBXML.xml Configuration File.
3. Click
Validate Document
.
4. If the
BerkeleyDBXML.xml configuration file is valid, save your changes.
You are ready to use Berkeley DB XML with Stylus Studio. Open the Output WindowThe first time you perform an operation on the Berkeley DB XML, Stylus Studio tries to process the BerkeleyDBML.xml file. As the file is processed, messages are written to the Stylus Studio Output window. These messages identify which database environments and directories are being processed. This can be a useful way to verify which directories Stylus Studio is associating with which database environment and identify when you might need to make a change in the BerkeleyDBXML.xml file. |