XMLValidation Activity
The XMLValidation activity validates whether an XML document is an instance of the specified schema. The activity validates the XML file against an XSD without loading it into memory.
General Tab
Input Tab
| Input Item | Datatype | Description |
|---|---|---|
| fileName | String | The path and name of the file.
This field is available only when File Name is selected as the Input XML source on the General tab. |
| Input Stream | ObjectReference | Input Stream ObjectReference mapped from the output of the FileToStream activity.
It is available only when Input Stream is selected as the Input XML source on the General tab. |
| outputStream | ObjectReference | The Output stream ObjectReference mapped from the GetFragment activity.
It is available only when Output Stream is selected as the Input XML source on the General tab. |
| Binary | Bytes | XML data in binary format to validate.
It is available only when Binary is selected as the Input XML source on the General tab. |
| schemaFileName
(Optional) |
String | The location and filename of the schema file to be used when validating the XML file.
Note: The schema specified on the Input tab overrides the schema specified on the General tab. |
Fault Tab
| Exception | Thrown When... |
|---|---|
| FileIOException | This error may be thrown when an XML file is being read from a stream. |
| FileNotFoundException | Cannot find the file provided in the fileName parameter or schemaFileName parameter. |
| XMLSchemaValidationException | This is a generic validation exception. This exception provides errors related to XML validation. |
