#include <DbXml.hpp> void XmlQueryContext::setVariableValue( const std::string &name, const XmlValue &value); void XmlQueryContext::setVariableValue( const std::string &name, const XmlResults &value);
Creates an externally-declared XQuery variable by binding the specified value, or sequence of values, to the specified variable name.
This method may be called at any time during the life of the application.
The name of the variable to bind. Within the XQuery query,
the variable can be referenced using the normal
$name
syntax.
The value to bind to the named variable. If
value
is an
XmlResults
object, a
sequence of values is bound to the variable.