XmlQueryContext::setBaseURI

API Ref

#include <DbXml.hpp>

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

std::string XmlQueryContext::getBaseURI();


Description: XmlQueryContext::setBaseURI

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:/.

Description: XmlQueryContext::getBaseURI

Returns the base URI set for this XmlQueryContext object.


APIRef

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