XmlManager::existsContainer

API Ref

#include <DbXml.hpp>

int XmlManager::existsContainer(const std::string &name);


Description: XmlManager::existsContainer

The XmlManager::existsContainer method examines the named file, and if it is a container, returns a non-zero database format version. If the file does not exist, or is not a container, zero is returned.

The container may be open or closed; no exceptions will be thrown from this method.

Parameters

txn
If the operation is to be transaction-protected, the txn parameter is an XmlTransaction handle returned from XmlManager::createTransaction.
name
The name of the file to be examined.

APIRef

Copyright (c) 1996,2007 Oracle. All rights reserved.