Skip to content

Naming rules violated #4

@PiRomant

Description

@PiRomant

XML Naming Rules

XML elements must follow these naming rules:

  • Element names are case-sensitive
  • Element names must start with a letter or underscore
  • Element names cannot start with the letters xml (or XML, or Xml, etc)
  • Element names can contain letters, digits, hyphens, underscores, and periods
  • Element names cannot contain spaces
  • Any name can be used, no words are reserved (except xml).

https://www.w3schools.com/xml/xml_elements.asp#XML%20Naming%20Rules:~:text=can%20have%20attributes.-,XML%20Naming%20Rules,-XML%20elements%20must

Example of an incorrect name:

{
 "icons size": {
    "16": "icons/icon16.png",
    "32": "icons/icon32.png"
  }
}

converts to

<root>
  <icons size>
    <16>icons/icon16.png</16>
    <32>icons/icon32.png</32>
  </icons>
</root>

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions