Element Names


Datafile Software

Element Names


If you are creating your own XML file design, then you decide the element names, and any attribute names you may require. Such names may contain any character from the Roman alphabet (A–Z, a-z), the digits 0–9, and three punctuation characters: the underscore, the hyphen and the period. The colon can be used, but only in conjunction with "namespace” attributes.

Element names must start with an alphabetic character or with an underscore. They must not start with a number, hyphen or period.

In theory, XML names can also contain non-Roman letters, numbers and "ideograms” such as characters from Japanese scripts. We do not currently support this wider character set, however.
Custom Fields

Article ID: 1798
Created On: Mon, Jul 9, 2012 at 11:54 AM
Last Updated On: Thu, Jun 22, 2023 at 5:02 PM

Online URL: https://kb.datafile.co.uk/article/element-names-1798.html