You can use an XML Validator to validate the whole XML file or parts of it. However, this feature is more appropriate while validating portions of XML streams. For validation, you need to provide the Xpath of the elements of the XML file and the path of the XSD against which the schema will validate that XML file.
This feature is available in:
Enterprise | Premier | Professional | Express |
---|---|---|---|
√ |
|
|
|
Steps to create a XML Validator activity
On the Adeptia Suite homepage, go to Configure > Services > Schema and then click XML Validator. The XML Validator screen is displayed (see Figure 276).
Figure 276: Manage XML Validator
Click the Create New link. This action will display you the Create XML Validator screen (see Figure 277).
Figure 277: Create XML Validator
- Enter the name and description of the new XML Validator activity in the Name and Description textboxes respectively.
- If you want to validate the Sub XML, check the Validate Sub XML checkbox.
- In the Enter XPath textbox, enter the XPath of the XML file that you want to validate.
In the XSD File Path textbox, enter the path of that XSD file, which the schema will use to validate against the XML file.
To learn more about Advanced Properties refer to the Changing Advanced Properties section.
- Click the Save button.
After creating the XML Validator Activity, you can place it after the source activity. If the file does not match the XSD, the XML Validator activity will fail and the process flow will be aborted.