XML Schema Validator

Know the component and how to use it.

The XML Schema Validator validates an XML file against one or multiple XSD files.

Parameters

Take a look at the configuration options for the component. Parameters supported by Double Braces expressions are marked with (DB).

ParameterDescriptionDefault valueData type

XML File Name

Name of the XML file that will be validated.

N/A

String

XSDs

A list of XSD files that will be used to validate the XML file. The XSD root validation file should be informed as the first file and the rest of the XSDs files should be informed after that. The name of the informed files should be the same as those specified within the XSD file imports.

N/A

Options of XSDs

Fail On Error

If the option is enabled, pipeline executions will be interrupted if an error occurs. Otherwise, the execution of the pipeline continues, but the result of the success property will be false in the output of the component.

N/A

Boolean

This component does not allow any declared DTD in the XLM content. See the example below:

Example:

"<?xml version=\"1.0\" encoding=\"UTF-8\"?><!DOCTYPE foo [ <!ENTITY xxe SYSTEM \"file:///etc/passwd\"> ]><stockCheck><productId>&xxe;</productId></stockCheck>"

Messages flow

Input

No specific message is required in the input. You may only set up the fields required for each operation.

Output

{
    "success": true,
    "valid": true,
    "errors": [
    {
        "lineNumber": 10,
        "columnNumber": 2,
        "message": "Invalid type",
        "publicId": null
    }
    ]
}

Last updated