XML XSD Validator Policy
Use the XML Validator policy to validate a request against an XML Schema Definition (XSD). You can upload an XML XSD file to define the schema.
Important: This page describes Classic APIM. For APIM 3.0,
refer to API Management 3.0.
Schema Validation Failed error.
Note: Alternatively, you can use the specification that you upload to create an API.
Policy execution order
The XML XSD Validator policy executes after the request has been authenticated. You can use both the XML XSD Validator and XML DTD Validator Policy policies concurrently as long as the schemas do not conflict.
Note:
All expression enabled fields in API Policies take expressions from
Understanding Expressions in SnapLogic
and the API Policy Manager Functions
Settings
| Field/Field set | Description |
|---|---|
| When this policy should be applied | An expression that defines one or more conditions that must be
true for the policy to execute.
Example: The expression |
| Edit DTD | Launches the editor which allows you to define an XSD. The editor loads an existing XML
document if defined previously. The editor lets you save XML in SnapLogic's file system or
import existing XML documents from it. Default value: Empty XML file Example:
|
| Hide/Render WhiteSpace | Formats XML with watermarked dots or plain white space between the characters. |
| Format Code | Formats text in XML |
| Description |
Default value: Requests are being validated against the specified XSD |