CHECK_XML
functionsupportedCore SQL functionsChecks the validity of an XML document. If the input string is NULL or a valid XML document, the output is NULL. In case of an XML parsing error, the output string contains the error message.
Syntax
supportedpartialnot supportednot scored
CHECK_XML( <string_containing_xml> [ , <disable_auto_convert> ] )
CHECK_XML( STR => <string_containing_xml>
[ , DISABLE_AUTO_CONVERT => <disable_auto_convert> ] )
Parameters
| Name | Required | Description |
|---|---|---|
string_containing_xml OR STR => string_containing_xml | required | Specify an expression that evaluates to a VARCHAR value that contains valid XML. |
disable_auto_convert OR DISABLE_AUTO_CONVERT => disable_auto_convert | optional | Specify the same value that you pass to the PARSE_XML function. Default: FALSE |
Returns
The data type of the returned value is VARCHAR.
Usage notes
- When you mix arguments by position and by name, all of the positional arguments must come before all of the named arguments.
- When you specify an argument by name, you can’t use double quotes around the argument name.