XmlQueryContext::setWithMetaData

API Ref

#include <DbXml.hpp>

void XmlQueryContext::setWithMetaData(bool withMetaData); bool XmlQueryContext::getWithMetaData() const;


Description: XmlQueryContext::setWithMetaData

The XmlQueryContext::setWithMetaData method allows the application to define whether the document metadata should be materialised as attributes of the root node before a query is performed. By default, the metadata is added. Adding the metadata has some cost, and if it is not necessary for correctness of the query, leaving it off is more efficient.

Parameters

withMetaData
The withMetaData parameter specifies whether or not to add the document metadata prior to the query.

Description: XmlQueryContext::getWithMetaData

Discover whether or not document metadata will be materialised before the query is performed. The default is true.

.

Returns the boolean value set in the XmlQueryContext object.


Class

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

APIRef

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