>> English << | česky | Español | Português | Türkçe | Nederlands | По-русски | Deutsch | Français | Italiano | 中文 | ქართული | Magyar | PolskiZVON > Tutorials > XML Tutorial
>> Example 6 << | Prev | Next | Contents

Description

Element names can contain letters, digits, hyphens, underscores, colons, or full stops. A colon can be used only in a special case where it separates so called namespace. Element names starting with xml, XML or other combination of cases of this string are reserved for the standard.

Well-formed documents


Document with permitted characters:


<permittedNames>

     <name/>

     <xsl:copy-of/>

     <A_long_element_name/>

     <A.name.separated.with.full.stops/>

     <a123323123-231-231/>

     <_12/>

</permittedNames>


Documents with errorsTop


This document contains several errors. :


<forbiddenNames>

     <A;name/>

     <last@name>

     <@#$%^()%+?=/>

     <A*2/>

     <1ex/>

</forbiddenNames>


The names cannot start with xml:


<forbiddenNames>

     <xmlTag/>

     <XMLTag/>

     <XmLTag/>

     <xMlTag/>

     <xmLTag/>

</forbiddenNames>