Skip to main content

valid-xml-name-conventions

Overview

This rule belongs to the apimatic-preliminary-validation ruleset and states that:

Name assigned to an XML entity must follow W3C Extensible Markup Language recommendations.

PropertyValue
EnabledYes
Maximum SeverityError
MessageXML name assigned to the current entity is invalid.
CodeAPIMATICPRE_V601
TypeValidation
Rule SystemSemantic
Broad CategoryXML Attributes
Products ImpactedCode Generation, Developer Experience Portal, API Transformer
Tagspreliminary checks validation apimatic name xml

Suggested Fixes

  • Name must start with a letter or underscore.
  • Name cannot start with the letters xml (or XML, or Xml, etc).
  • Name cannot contain spaces.
  • Use only letters, digits, hyphens, underscores, and periods.

For More Information