# XmlDocument

`

###

    #include <DbXml.hpp>

    class DbXml::XmlDocument {
    public:
    	XmlDocument();
    	XmlDocument(const XmlDocument &);
    	~XmlDocument();
    	XmlDocument &operator = (const XmlDocument &)
    	...
    };

# Description

An XmlDocument is the unit of storage within a XmlContainer.

A XmlDocument contains a stream of bytes that may be of type XML or BYTES. The XmlContainer will only index the content of XmlDocuments that contain XML. The BYTES type is supported to allow the storage of arbitrary content along with XML content.

All documents objects stored within a container are assigned a document ID, at 32-bit unsigned integral value. This ID uniquely identifies a document within a container. The ID is assigned by the container when the document is first added to the container.

The XmlDocument class supports annotation attributes. The user may annotate their documents with meta-information to be stored with their document, but not within their document.

# Class

XmlContainer, XmlDocument, XmlQueryContext

# See Also

XmlContainer::close, XmlContainer::declareIndex, XmlContainer::deleteDocument, XmlContainer::getDocument, XmlContainer::getName, XmlContainer::open, XmlContainer::putDocument and XmlContainer::queryWithXPath.

XmlDocument::getAttributeValue, XmlDocument::getContent, XmlDocument::getID, XmlDocument::getName, XmlDocument::getType, XmlDocument::setContent, XmlDocument::setName, and XmlDocument::setType.

`

Copyright Sleepycat Software