␡
- Rule 1: All XML Must Have a Root Element
- Rule 2: All Tags Must Be Closed
- Rule 3: All Tags Must Be Properly Nested
- Rule 4: Tag Names Have Strict Limits
- Rule 5: Tag Names Are Case Sensitive
- Rule 6: Tag Names Cannot Contain Spaces
- Rule 7: Attribute Values Must Appear Within Quotes
- Rule 8: White Space Is Preserved
- Rule 9: Avoid HTML Tags (Optional)
Like this article? We recommend
Rule 4: Tag Names Have Strict Limits
Tag names can’t start with the letters xml, a number, or punctuation, except for the underscore character (_).
The letters XML are used in various commands and can’t start your tag name. Numbers and punctuation also aren’t allowed in the beginning of the tag name.
Wrong:
<01_author> <"author">
Right:
<author> <_author>