#include <DbXml.hpp> void XmlContainerConfig::setCompressionName(const char *name)
Sets the name of the compression object to be used by the container. Compression is only used by whole document storage containers. If a compression name is set and a container is created or opened the name must match one that has been registered with the XmlManager using XmlManager::registerCompression. The default name is the name of the default compression algorithm. If compression is disabled this setting is ignored. The compression name can only be set at creation time, afterwards the container must always be open with the same compression name and registered object.
The name of the registered compression object to be used by
the container. Built-in values are
XmlContainerConfig::NO_COMPRESSION
,
which skips compression and
XmlContainerConfig::DEFAULT_COMPRESSION
which uses the built in compression algorithm. Built-in
types are pre-registered with the
XmlManager
if
compression was enabled during the product build.