Project Index | Documentation | Relax NG | Sample XML File
The <cartoon-network>
element contains one or more <show>
elements.
Each <show>
element has a unique id
attribute and
a category
attribute. The category
attribute identifies each show as either a "series"
(i.e. on a regular schedule), a "movie"
, a
"special"
(e.g. a holiday show not categorized as a
movie) or a "cartoonolio"
(a series run back to back for
two hours or more).
Each <show>
element contains the following elements in order:
<name>
<created>
<studio>
responsible for its creation<rating>
<star-list>
or single <star>
element<description>
of the show<schedule>
during a seven day span (typically Sunday
through the following Saturday)<note>
that provides a brief commentary on the show<fanclub>
elements<website>
elementsThe <show>
element contains plain text.
The <created>
element must be a year between and including 1927-2002.
The <studio>
element contains plain text.
The television industry <rating>
is a choice of one of the following:
TV-G
(General audiences)TV-Y
(Suitable for young children)TV-Y7
(Suitable for ages 7 and up)TV-PG
(Parental guidance)TV-14
(Unsuitable for children under 14)TV-MA
(Mature audiences only)The <star>
element contains plain text. It has a role attribute that
offers a choice of either "major"
, "minor"
or "guest"
value.
The <description>
element contains plain text.
The <schedule>
element contains a <week>
element, one or more <day>
elements and one or more <time>
elements.
The <week>
element contains a <begin-date>
element and an <end-date>
element. These two elements have a data type of "date". The <day>
element offers a choice of one of the following values:
M
, TU
, W
, TH
,
F
, SA
, SU
and optionally a
hyphen followed by either TH
or F
to
indicate a series running Monday through Thursday or Monday through
Friday. Each <day>
element is followed by one or more <time>
elements.
Each <time>
element requires two digits, a colon,
two digits, a hyphen, two digits, a colon, two digits and then a
choice of a
or p
to indicate the ending
time as "a.m." or "p.m.".
The <note>
element contains mixed content (text
and elements). The elements contained in <note>
include <month>
, <day>
,
<year>
, <time>
and
<award>
All of these elements contain plain
text. The time elements (<month>
,
<day>
, <year>
, and
<time>
) occur one or more times.
The <award>
element occurs zero or more times.
The <fanclub>
element contains the
<club-name>
and either an
<email>
address (in plain text) or
<street>
, <city>
,
<state>
, and <zipcode>
elements. The <street>
and
<city>
elements contain plain text, the
<state>
must be two uppercase letters, and the
<zipcode>
must be five digits followed
(optionally) by a hyphen and four more digits.
The <website>
element contains plain text.