XmlQueryContext::setBaseURI

#include <DbXml.hpp>

void XmlQueryContext::setBaseURI(const std::string &baseURI)

Sets the base URI used for relative paths in query expressions. For example, a base URI of file:///export/expression/, and a relative path of ../another/expression, resolves to file:///export/another/expression.

Parameters

baseURI

The base URI, as a string.

Errors

The XmlQueryContext::setBaseURI method may fail and throw XmlException , encapsulating one of the following non-zero errors:

INVALID_ERROR

The base URI string is not a valid URI scheme. It must begin with a string of the form, scheme:/.

Class

XmlQueryContext

See Also

XmlQueryContext Methods