- Categories:
CHECK_XML¶
Checks 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¶
Arguments¶
Required:
string_containing_xml. OR .STR => string_containing_xmlSpecify an expression that evaluates to a VARCHAR value that contains valid XML.
Optional:
disable_auto_convert. OR .DISABLE_AUTO_CONVERT => disable_auto_convertSpecify 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.
Examples¶
The following examples use the CHECK_XML function.