Pipelet: ImpEx ValidateXMLFile
Pipelet ValidateXMLFile
Validates the given xml file against the given xsd schema definition and returns a status reporting the results of the validation. If the validation operation executed without any process error, regardless of whether or not the XML file is valid, then the pipelet returns next. If the given xml file or xsd schema file do not exist in the given path the pipelet exits in a pipelet error. The status containes the status of the validation.
Group:
ImpEx
Flags:
Error Connector
Input Parameters
File : String Required
The path to the XML file to be validated. Note: The path need to be relative to "impex/src/".
Schema : String Required
The name of the XSD schema definition file the XML file is validated against (i.e. "catalog.xsd").
Output Parameters
LogFileName : String : Optional
The name of the log file that is created and used for the validation process.
ErrorCount : Integer : Optional
The number of validation errors that occured during the validation process.
WarningCount : Integer : Optional
The number of validation warnings that occured during the validation process.
Status : Status : Optional
Status object representing the result of the validation operation. The status property (Status.status) will be set to 0 if the validation executed without any process errors or 1 otherwise. The code property (Status.code) will be set to one of the following values:
IMPEX-0 = Successful.
IMPEX-105 = Schema or XML file not found.
IMPEX-110 = I/O error occured when reading the zipped XML file.
IMPEX-171 = General I/O error occurred.
IMPEX-250 = Validation error.
The Status object will always contain the following detail:
"LogFileName" = (String) The log file name.
If no process error occurred then the status object will also contain the following details:
"ValidationErrorCount" = (Integer) The error count.
"ValidationWarningCount" = (Integer) The warning count.