Next / Previous / Contents / Shipman's homepage

4.4. Name validation

This package supports the definitions of valid element and attribute names as defined in the XML standard. Names must consist of one character from set NameStartChar followed by zero or more characters from set NameChar.

NameStartChar

Names may start with “:”, “_”, any ASCII letter, or any member of several code point ranges from the Unicode standard:

  • #x00C0-#x00D6

  • #x00D8-#x00F6

  • #x00F8-#x02FF

  • #x0370-#x037D

  • #x037F-#x1FFF

  • #x200C-#x200D

  • #x2070-#x218F

  • #x2C00-#x2FEF

  • #x3001-#xD7FF

  • #xF900-#xFDCF

  • #xFDF0-#xFFFD

  • #x10000-#xEFFFF

NameChar

The set NameChar includes all the members of NameStartChar plus the digits 0–9, “-”, “.”, the · character “·”, and characters from two additional ranges of Unicode code points:

  • #x0300-#x036F

  • #x203F-#x2040