XVALIDATE

The XVALIDATE function validates the XML input.

This function validates XML input, provided as a text stream or URL, against the provided XML Schema.

Syntax:
XVALIDATE (single-text-expression, single-text-expression)
Meaning:
XVALIDATE (xml_url_or_xml_fragment, target_namespace XML_schemaname)
Returns:
This function evaluates to a Boolean "true" or "false".

Examples

  • IF( XVALIDATE( "ipo.in.xml", "http://www.example.com/IP ipo.xsd" ), "VALIDATION SUCCESS", LASTERRORMSG())

    Returns the message VALIDATION SUCCESS when the validation of the ipo.in.xml file succeeds and returns a message that explains the validation error otherwise.