Skip to main content

XML Validation

Current configuration of the XML Validation task in the Workflow Designer

The XML Validation task allows you to verify the formal correctness of an XML file against an XSD definition schema.

Configuration

To perform validation, you must specify the following files:

  • XML File: In this field, specify the XML file to be validated. You can select a parameter of type File previously defined in the Parameter List or manually enter the full (absolute) path to the file.
  • XSD File: Here, specify the XSD schema file (XML Schema Definition) that defines the structure and rules to which the XML file must conform. In this case too, you can select a parameter of type File or manually enter the absolute path.
Validation Process

Once both files are configured, the application will compare the structure and data of the XML file with the definitions contained in the XSD file to determine its validity.

Output Parameters

Upon completion of execution, the task makes the following Output Parameters available, which can be used as inputs in subsequent tasks of the Workflow.

  • result: indicates the outcome of the submission operation (e.g., "The XML document is valid" or "The XML document is not valid").
  • resultJson: represents the result of the task execution in JSON format, including general information, configurations, and details about the execution.