XmlQueryContext::setDefaultCollection

API Ref

#include <DbXml.hpp>

void XmlQueryContext::setDefaultCollection(const std::string &uri);

std::string XmlQueryContext::getDefaultCollection() const;


Description: XmlQueryContext::setDefaultCollection

The default collection is that which is used by fn:collection() without any arguments in an XQuery expression.

Parameters

uri
A URI specifying the name of the collection.

Description: XmlQueryContext::getDefaultCollection

Discover the name of the default collection used by fn:collection() with no arguments in an XQuery expression.

Returns the URI of the default collection.


APIRef

Copyright (c) 1996,2007 Oracle. All rights reserved.