Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Corrected links that should have been relative instead of absolute.

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. 


Steps to create an XML Validator service

...

  1. Configure > LAYOUTS > XML Validator.

...

  1. Click CREATE XML Validator

...

  1.  Layout.

...

Click the Create New link. This action will display you the Create XML Validator screen.

  1. On the Create Layout window, type the name and description of the

...

  1. new XML layout in the Name and 

...

  1. Description fields respectively.

...



  1. Image Added

  2. Select the Validate Sub XML check box if you want to validate the Sub XML

...

  1. .
  2. In the Enter XPath

...

  1.  field, enter the XPath of the XML file

...

  1. you want to validate.
  2. In the XSD File Path

...

  1.  field, enter the path of

...

  1. XSD file

...

  1. which

...

  1. layout will use to validate against the XML file.

To learn more about Advanced Properties refer to the Changing Advanced Properties section.

...

  1. Expand Advanced Properties and select the Project from the drop-down list of Project.

  2. Click Save to save the XML Validator layout.

After creating the XML Validator

...

service, you can place it after the

...

source service. If the file does not match the XSD, the XML Validator

...

service will fail and the process flow will be aborted.