SE_xmldoc_get_tag_conflicts
Returns a list of tags in a document that conflict with the data type in the index.
Usage syntax
LONG SE_xmldoc_get_tag_conflicts
(SE_CONNECTION handle,
const SE_XMLDOC xmldoc,
const SE_XMLINDEXINFO xmlindex,
LONG *num_conflicts,
SE_XMLTAGINFO **tags);
Parameters
|
handle |
An open connection handle. |
|
xmldoc |
The SE_XMLDOC object. |
|
xmlindex |
The SE_XMLINDEXINFO object. |
|
num_conflicts |
The number of conflicting tags found in the document. |
|
tags |
Array of conflicting flags. |
Description
This function returns a list of tags in an XML document whose values conflict with the tags' data types specified in an SE_XMLINDEXINFO object.
The function parses the given XML document to get a list of tags and their values. It checks the values against the data types specified for the tag in "xmlindex". If the tag value is a double and the tag's specified data type is string, then there is no onflict. (A number can be stored as a string, e.g. "10"). However, if the tag value is a string and the tag's data type is indicated as double, then a data type conflict exists.
Returns
SE_SUCCESS
SE_INVALID_POINTER
SE_INVALID_XMLDOC_OBJECT
SE_INVALID_XMLINDEX_OBJECT
SE_NET_FAILURE
SE_OUT_OF_CLMEM
SE_SDE_NOT_STARTED