Search This Blog

XML element naming rules

XML elements must follow these naming rules:
  • Names can contain letters, numbers, and other characters. Except for the first character, they can contain
    • digits
    • period(.)
    • hyphen(-)
    • underscore(_)
    • colon(:) - legal but should be used except for namespaces
    • NO other characters are allowed like #, @, $, %
  • Names cannot start with a number or punctuation character. Must start with a letter or a underscore(_).
  • Names cannot start with the letters xml (or XML, or Xml, or xMl etc)
  • Names cannot contain spaces
Any name can be used, no words are reserved.

No comments:

Post a Comment