### XmlDocument::getContent |

`

###

    #include <DbXml.hpp>

    const Dbt * XmlDocument::getContent() const;
    std::string &getContentAsString(std::string &content) const;

### Description: XmlDocument::getContent

The XmlDocument::getContent method returns a pointer to the document content. The returned value is owned by the XmlDocument, and is destroyed when the document is destroyed.

Returns a pointer to the XmlDocument content as raw bytes.

### Description: XmlDocument::getContent

The getContentAsString() method copies the content of the document into a string , and as a convenience returns a reference to the string . The getContent() method can be used to avoid the copy.

### Class

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

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