XML

XML Naming Rules

Posted on 18th February 2014

There are certain rules that must be followed when naming XML elements, attributes, entities etc..

XML is case-sensitive so the elements <Catalog>, <CATALOG> and <catalog> are all treated as different

The following are some valid XML names :
<Movie_Catalog>
<movie-100>
<movie.catalog>

The following names are invalid:
<xml-Catalog> cannot start with the word xml
<movie=catalog> cannot contain =
<movie catalog> white space is not allowed
<100movie> cannot start with numbers

Post a comment

Comments

Nothing yet..be the first to share wisdom.