Naming Conventions: Part I Introducing XML
Naming Conventions: Part I Introducing XML
Naming Conventions: Part I Introducing XML
qc
66
6/29/99
1:04 PM
Page 66
tag comes before all other elements start tags, and the root elements end tag
comes after all other elements end tags. For our root element, we will use SEASON
with a start tag of <SEASON> and an end tag of </SEASON>. The document now
looks like this:
<?xml version=1.0?>
<SEASON>
</SEASON>
Naming Conventions
Before we begin, Id like to say a few words about naming conventions. As youll see in the
next chapter, XML element names are quite flexible and can contain any number of letters
and digits in either upper- or lowercase. You have the option of writing XML tags that look
like any of the following:
<SEASON>
<Season>
<season>
<season1998>
<Season98>
<season_98>
There are several thousand more variations. I dont really care (nor does XML) whether you
use all uppercase, all lowercase, mixed-case with internal capitalization, or some other convention. However, I do recommend that you choose one convention and stick to it.