SE_queryinfo_set_xpath_constraint

Sets the XPath expression in a queryinfo structure

Usage syntax

LONG SE_queryinfo_set_xpath_constraint
(SE_QUERYINFO query_info,
const CHAR *table,
const CHAR *column,
const CHAR *xpath_expr);

Parameters
query_info The SE_QUERYINFO handle
table The name of the table with the XML column
column The name of the XML column
xpath_expr The user's XPath expression
Description

This function places an XPath expression into an SE_QUERYINFO object. Acting like a WHERE clause on an XML column, an XPath expression is used to select rows to be returned from a table or feature class that has an XML column.

There may be only one XPath expression per XML column.

While defining a query with an SE_QUERYINFO object, this function may be called multiple times. If this function is called more than once for the same XML column, any previous XPath expression set for that column will be discarded. Calling this function with a NULL, or calling with an empty string as the XPath expression will clear (remove) any existing XPath expression on that column. In the case of queries involving multiple XML columns, the SE_QUERYINFO object will maintain a list of XPath expressions, one per XML column.

Returns

SE_SUCCESS
SE_OUT_OF_CLMEM

SE_INVALID_PARAM_VALUE

SE_INVALID_POINTER

SE_INVALID_QUERYINFO_OBJECT

SE_SDE_NOT_STARTED