valid-xml-schema
Overview
This rule belongs to the xml-validation ruleset and states that:
XML schema serves as a blueprint or template that defines the structure, data types, and constraints for certain types of XML data. The XML schema must adhere to the W3C XML Schema standard.
| Property | Value |
|---|---|
| Enabled | Yes |
| Maximum Severity | Blocking |
| Message | Provided XML schema is invalid. |
| Code | XML_V400 |
| Type | Validation |
| Rule System | Syntax |
| Broad Category | XML Schema |
| Tags | xml preliminary checks validation schema |
Suggested Fixes
- Ensure that the root element of the XML Schema is <schema> and its namespace is
http://www.w3.org/2001/XMLSchema - Ensure that if the XML schema references any external schemas, the links to those are publicly accessible. If the external references are local paths, ensure that you upload a ZIP file containing all of those references.
- Ensure that all properties in the XML schema follow the constraints specified for them in the W3C standard.
- Ensure that all XML namespace prefixes used in the XML schema have a declaration.