#include <DbXml.hpp> void XmlContainer::deleteDocument(const std::string name, XmlUpdateContext &context) void XmlContainer::deleteDocument(XmlDocument &document, XmlUpdateContext &context) void XmlContainer::deleteDocument(XmlTransaction &txn, const std::string name, XmlUpdateContext &context) void XmlContainer::deleteDocument(XmlTransaction &txn, XmlDocument &document, XmlUpdateContext &context)
The XmlContainer::deleteDocument
method
removes the specified
XmlDocument
from the
XmlContainer
.
You can specify the document by name, or as a reference to an XmlDocument object.
#include <DbXml.hpp> void XmlContainer::deleteDocument(const std::string name, XmlUpdateContext &context) void XmlContainer::deleteDocument(XmlTransaction &txn, const std::string name, XmlUpdateContext &context)
Delete the document with the given name. Parameters are:
If the operation is to be transaction-protected, this parameter is an XmlTransaction handle returned from XmlManager::createTransaction.
The name of the XmlDocument to be deleted from the container.
The XmlUpdateContext object to use for this deletion.
#include <DbXml.hpp> void XmlContainer::deleteDocument(XmlDocument &document, XmlUpdateContext &context) void XmlContainer::deleteDocument(XmlTransaction &txn, XmlDocument &document, XmlUpdateContext &context)
Removes the specified XmlDocument from the XmlContainer .
If the operation is to be transaction-protected, this parameter is an XmlTransaction handle returned from XmlManager::createTransaction.
The XmlDocument to be deleted from the container. The name of the document to be deleted is extracted from this parameter.
The XmlUpdateContext object to use for this deletion.
The XmlContainer::deleteDocument
method
may fail and throw
XmlException
, encapsulating one of the
following non-zero errors:
An error occurred in an underlying Berkeley DB database. The XmlException::getDbErrno method will return the error code for the error.
The specified document is not in the XmlContainer .