Skip to main content

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.

PropertyValue
EnabledYes
Maximum SeverityBlocking
MessageProvided XML schema is invalid.
CodeXML_V400
TypeValidation
Rule SystemSyntax
Broad CategoryXML Schema
Tagsxml 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.

For More Information