XmlContainer::verify

API Ref

#include <DbXml.hpp>

void XmlContainer::verify(std::ostream *out, u_int32_t flags);


Description: XmlContainer::verify

The XmlContainer::verify method checks that the container data files are not corrupt, and optionally writes the salvaged container data to the specified output stream.

The container must be closed; the system throws an exception if the container is open.

The container must have been opened at least once; the system throws an exception if the underlying files have not yet been created.

Parameters

flags
Flags must be set to zero, DB_SALVAGE, or DB_SALVAGE and DB_AGGRESSIVE method. Please refer to the Berkeley DB reference manual for a full discussion of these values.

Errors

The XmlContainer::verify method may fail and throw XmlException, encapsulating one of the following non-zero errors:

CONTAINER_OPEN
The container is open.

DATABASE_ERROR
An error occurred in an underlying Berkeley DB database. The XmlException::getDbError method will return the error code for the error.

Class

XmlContainer, XmlDocument, XmlException, XmlIndexSpecification, XmlQueryContext, XmlQueryExpression, XmlResults, XmlUpdateContext, XmlValue

APIRef

Copyright (c) 1996-2003 Sleepycat Software, Inc. - All rights reserved.