XmlQueryContext::setVariableValue

API Ref

#include <DbXml.hpp>

void XmlQueryContext::setVariableValue( const std::string &name, const XmlValue &value);

bool XmlQueryContext::getVariableValue( const std::string &name, XmlValue &value);


Description: XmlQueryContext::setVariableValue

Creates an externally-declared XQuery variable by binding the specified value to the specified variable name.

The XmlQueryContext::setVariableValue method may be called at any time during the life of the application.

Parameters

name
The name of the variable to bind. Within the XQuery query, the variable can be referenced using the normal $name syntax.
value
The value to bind to the named variable.

Description: XmlQueryContext::getVariableValue

Returns the value that is bound to the specified variable. If there is no value binding then the function returns false and value is set to the null value (XmlValue::isNull returns true).

Parameters

name
The name of the variable whose value is required.
value
The value bound to the variable.

APIRef

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