The Zip XSD Validation filter is used to validate XML documents against an XML Schema Definition Language (XSD) schema. The filter returns the original XML message if the message is valid and includes the option to route to the error connector, to continue processing the message, or to return an XML document with full error information if the message is invalid. There are three levels of validation error (warn, error and fatal error) which you can set as the minimum validation failure level. During message validation, the filter counts the number of errors which have occurred, both in total and for each level of error, and stores these values in the message properties.
The XML Schema Definition Language (XSD) is an XML language for describing and constraining the content of XML documents.
This filter validates the XSD that you supply to make sure that it has no errors.
Refer to XML Schema for details.
Configuration Properties
Property |
Description |
---|---|
Maximum Concurrency |
The maximum level of concurrency for this filter. A setting of |
Zip File |
The Zip file that contains the XSD file that you would like to use. The zip should also contain all other relevant XSD files that are included using If your Zip file is using folder paths or XSD filenames that contain non-ASCII filenames, you should ensure that your zip file has been created with UTF-8 encoding. |
XSD Path |
The path (in the Zip file) to the XSD file that you would like to use. This path should not be URL-encoded. If your XSD file is referencing other XSD files using |
On Validation Failure |
The action to be performed if validation fails:
|
Minimum Validation Failure Level |
Options: |
Halt Checking On Error |
Whether to halt checking on error:
|
Validation Options |
XSD validation checking options. All options set to false by default. If a particular checking option needs to be turned on then select the option and set its value to
|
Published Properties
Published properties for the Zip XSD Validation filter are:
WarnCount
- the number of warnings which occurred during validation checking.ErrorCount
- the number of errors which occurred during validation checking.FatalErrorCount
- the number of fatal errors which occurred during validation checking.FatalErrorCount
is either 0 or 1, because the filter stops validation checking on the first fatal error.TotalErrorCount
- the total number of errors which occurred during validation checking, in other words it is the sum of property values ofWarnCount
,ErrorCount
andFatalErrorCount
.