Example 6     <<      >>       intro       contents     

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   HOME     

Document with permited characters:

               <permitedNames>
                    <name/>
                    <xsl:copy-of>
                    <A_long_element_name/>
                    <A.name.separated.with.full.stops/>
                    <a123323123-231-231/>
                    <_12/>
               </permitedNames>
               
            

  Documents with errors   HOME     

This document contains several errors. :

               <forbidenNames>
                    <A;name/>
                    <last@name>
                    <@#$%^()%+?=/>
                    <A*2/>
                    <1ex/>
               </forbidenNames>
               
            

The names cannot start with xml:

               <forbidenNames>
                    <xmlTag/>
                    <XMLTag/>
                    <XmLTag/>
                    <xMlTag/>
                    <xmLTag/>
               </forbidenNames>