Validate with DTD

Operation Name

Validate with DTD

Function Overview

Validate data with DTD.

Data Model

XML type.
For more details on input/output schema, refer to “Schema”.

Properties

For details on use of variables, refer to “Variables”.
Basic settings
Item name Required/Optional Use of variables Description Remarks
Name Required Not available Enter the name to show on the script canvas.  
Input data Required Not available Select a component on the script canvas.  
Required settings
Item name Required/Optional Use of variables Description Remarks
File for validation Required Available Enter the DTD file.

You can click [Browse] button to launch file chooser and find the file.
  • Specify that as absolute path of the server OS local file system.
Maximum number of error reports Optional Available Enter the maximum number of errors to report when validation failed.
  • Allowed values are 1-2147483646.
  • Default value is 1000.
Comment
Item name Required/Optional Use of variables Description Remarks
Comment Optional Not available You can write a short description of this adapter.
The description will be reflected in the specifications.
 

Schema

Same as the schema of input component.

Mass Data Processing

Mass data processing is not supported.

PSP Usage

PSP is not supported.

Available Component Variables

Component variable name Description Remarks
success The result of validation is stored.
  • Default value is null.
  • When succeeded “true” is stored, and when failed “false” is stored.
message_category When an error occurs, the corresponding message code's category is stored.
  • Default value is null.
message_code When an error occurs, the corresponding message code is stored.
  • Default value is null.
message_level When an error occurs, the corresponding message code's severity is stored.
  • Default value is null.
error_type When an error occurs, the error type is stored.
  • Default value is null.
  • The error type will be in the following format.
    Example: “java.io.FileNotFoundException”
  • The contents that will be stored may vary depending on DataSpider Servista versions.
error_message When an error occurs, the error message is stored.
  • Default value is null.
  • The contents that will be stored may vary depending on DataSpider Servista versions.
error_trace When an error occurs, the error's trace information is stored.
  • Default value is null.
  • The contents that will be stored may vary depending on DataSpider Servista versions and client applications.

Specification Limits

None.

Major Exceptions

Exception name Cause Solution
InputDataNotFoundException [Input data] is not specified. Specify [Input data] or draw data flow.
InvalidPropertyConfigurationException [File for validation] is not specified. Specify [File for validation].
ValidationException [Input data] is not valid for DTD specified in [File for validation]. Input valid data in [Input data] for DTD specified in [File for validation].
java.io.FileNotFoundException The file specified in [File for validation] does not exist. Check the specified file.