Validate XML document action in XML package - The Validate XML document action validates the XML data source against the specified validation type and returns the status of validation as the response. Use this action to verify whether the XML data source conforms to a defined structure or schema.

Automation 360

The Validate XML document action validates the XML data source against the specified validation type and returns the status of validation as the response. Use this action to verify whether the XML data source conforms to a defined structure or schema.

You can validate the source against an XML schema, internal Document Type Definitions (DTDs) available within the data source, or check if the data source is well-formed. The action returns the validation result in a string variable for use in the downstream actions.

Settings

The following settings are available in Validate XML document action:

Session name
Specifies the session name used in the Start session action when defining the XML data source.
Select validation type
Specifies the validation type based on which the XML data source must be validated. The following options are available for defining the validation type:
  • XML schema (.xsd) Select this option and specify the XML schema to validate the XML data source. Use List option to define individual XML schema elements or use Variable option to select a predefined list variable that contains the XML schema elements.
  • Internal DTD: Select this option to validate the XML data source using the DTD defined within the XML data source.
  • Well formed: Select this option to check if the XML data source is well-formed with correct syntax.
Assign the output (VALID or INVALID) to variable
Specify a string variable to capture the validation status. The action returns VALID for successful validation and INVALID if the validation fails.