SE_queryinfo_set_xml_doc_property

Sets the XML document property constraint in an SE_QUERYINFO structure

Usage syntax

LONG SE_queryinfo_set_xml_doc_property
(SE_QUERYINFO query_info,
const CHAR *table,
const CHAR *column,
LONG doc_property);

Parameters
query_info The SE_QUERYINFO handle
table The name of the table with the XML column
column The name of the XML column
doc_property The XML document property (see below)
Description

This function places a constraint into an SE_QUERYINFO object. The constraint is based on the properties of XML documents held in an XML column. This constraint is used to select rows from a table or feature class in which the specified XML column contains an XML document with specific properties.

While defining a query with an SE_QUERYINFO object, this function may be called multiple times. Each time this function is called for an XML column, any previous XML document property constraint for this column is overwritten. Calling this function with zero as the XML document property will clear (remove) any existing XML document property constraint for that column. In the case of queries involving multiple XML columns, the SE_QUERYINFO object will maintain a list of XML document property constraints, one per XML column.

Here is a list of supported XML document properties that can be used with this function.

When XML documents are inserted,some of them may have tag conflicts. ArcSDE flags the rows that have tag conflicts. You can later fetch all rows that have a conflict by setting SE_DOC_HAS_TAG_CONFLICTS on a queryinfo. Then call SE_xmldoc_get_tag_conflicts on the fetched document to see which tags are in conflict. Tags with conflicts are not indexed.

Returns

SE_SUCCESS
SE_OUT_OF_CLMEM

SE_INVALID_PARAM_VALUE

SE_INVALID_POINTER

SE_INVALID_QUERYINFO_OBJECT

SE_SDE_NOT_STARTED