XMLIsValid

XMLIsValid() is an SQL Operator. It checks if the input instance conforms to a specified XML schema. It does not change the validation status of the XML instance. If an XML schema URL is not specified and the XML document is schema-based, the conformance is checked against the XMLType instance's own schema. If any of the arguments are specified to be NULL, then the result is NULL. If validation fails, 0 is returned and no errors are reported explaining why the validation has failed.

Syntax

XMLIsValid ( XMLType_inst [, schemaurl [, elem]]) Parameters:

■ XMLType_inst - The XMLType instance to be validated against the specified XML Schema.

■ schurl - The URL of the XML Schema against which to check conformance.

■ elem - Element of a specified schema, against which to validate. This is useful when we have a XML Schema which defines more than one top level element, and we want to check conformance against a specific one of these elements.

0 0

Post a comment

  • Receive news updates via email from this site