]> gitweb.michael.orlitzky.com - dead/htsn-import.git/commitdiff
Add sample scoresxml files and the generated DTD.
authorMichael Orlitzky <michael@orlitzky.com>
Fri, 24 Jan 2014 18:35:23 +0000 (13:35 -0500)
committerMichael Orlitzky <michael@orlitzky.com>
Fri, 24 Jan 2014 18:35:23 +0000 (13:35 -0500)
schema/scoresxml.dtd [new file with mode: 0644]
schemagen/scoresxml/20160114.xml [new file with mode: 0644]
schemagen/scoresxml/20160285.xml [new file with mode: 0644]
schemagen/scoresxml/20187479.xml [new file with mode: 0644]

diff --git a/schema/scoresxml.dtd b/schema/scoresxml.dtd
new file mode 100644 (file)
index 0000000..b18995b
--- /dev/null
@@ -0,0 +1,27 @@
+<!ELEMENT XML_File_ID (#PCDATA)>
+<!ELEMENT heading (#PCDATA)>
+<!ELEMENT game_id (#PCDATA)>
+<!ELEMENT schedule_id (#PCDATA)>
+<!ELEMENT tsnupdate (#PCDATA)>
+<!ELEMENT category (#PCDATA)>
+<!ELEMENT sport (#PCDATA)>
+<!ELEMENT seasontype (#PCDATA)>
+<!ELEMENT vteam (#PCDATA)>
+<!ELEMENT hteam (#PCDATA)>
+<!ELEMENT vscore (#PCDATA)>
+<!ELEMENT hscore (#PCDATA)>
+<!ELEMENT time_r (#PCDATA)>
+<!ELEMENT status (#PCDATA)>
+<!ELEMENT game ( ( vteam, hteam, vscore, hscore, time_r?, status, notes? ) )>
+<!ELEMENT time_stamp (#PCDATA)>
+<!ELEMENT message ( ( XML_File_ID, heading, game_id, schedule_id, tsnupdate?, category, sport, location*, seasontype, game, time_stamp ) )>
+<!ELEMENT city (#PCDATA)>
+<!ELEMENT state (#PCDATA)>
+<!ELEMENT country (#PCDATA)>
+<!ELEMENT location ( ( city, state, country ) )>
+<!ELEMENT notes (#PCDATA)>
+
+<!ATTLIST vteam id CDATA #REQUIRED>
+<!ATTLIST hteam id CDATA #REQUIRED>
+<!ATTLIST status numeral CDATA #REQUIRED>
+<!ATTLIST status type CDATA #REQUIRED>
diff --git a/schemagen/scoresxml/20160114.xml b/schemagen/scoresxml/20160114.xml
new file mode 100644 (file)
index 0000000..b460c86
--- /dev/null
@@ -0,0 +1 @@
+<?xml version="1.0" standalone="no" ?>\r<!DOCTYPE message PUBLIC "-//TSN//DTD Scores 1.0/EN" "scoresxml.dtd">\r<message>\r<XML_File_ID>20160114</XML_File_ID>\r<heading>BC-ADi+129:143*  0  0 0</heading>\r<game_id>18166</game_id>\r<schedule_id>18166</schedule_id>\r<category>Scores</category>\r<sport>NHL</sport>\r<location>\r<city>Montreal</city>\r<state>QUEBEC</state>\r<country>CANADA</country>\r</location>\r<location>\r<city>Ottawa</city>\r<state>ONTARIO</state>\r<country>CANADA</country>\r</location>\r<seasontype>Regular</seasontype>\r<game>\r<vteam id="129">Montreal</vteam>\r<hteam id="143">Ottawa</hteam>\r<vscore>0</vscore>\r<hscore>0</hscore>\r<status numeral="0" type="i">0 Period</status>\r<notes>Ottawa - Right Wing Chris Neil (1/16, lower body) is probable for Thursday's \r  game against Montreal.</notes>\r</game>\r<time_stamp> January 16, 2014, at 10:39 AM ET </time_stamp>\r</message>\r
\ No newline at end of file
diff --git a/schemagen/scoresxml/20160285.xml b/schemagen/scoresxml/20160285.xml
new file mode 100644 (file)
index 0000000..6a04660
--- /dev/null
@@ -0,0 +1 @@
+<?xml version="1.0" standalone="no" ?>\r<!DOCTYPE message PUBLIC "-//TSN//DTD Scores 1.0/EN" "scoresxml.dtd">\r<message>\r<XML_File_ID>20160285</XML_File_ID>\r<heading>BC-BLP+P26:P56*  7  7 1R14:56</heading>\r<game_id>50719</game_id>\r<schedule_id>50719</schedule_id>\r<category>Scores</category>\r<sport>CBASK-W</sport>\r<seasontype>Regular</seasontype>\r<game>\r<vteam id="P26">Campbell</vteam>\r<hteam id="P56">Gardner-Webb</hteam>\r<vscore>7</vscore>\r<hscore>7</hscore>\r<time_r>14:56</time_r>\r<status numeral="1" type="P">1 Half</status>\r</game>\r<time_stamp> January 16, 2014, at 11:17 AM ET </time_stamp>\r</message>\r
\ No newline at end of file
diff --git a/schemagen/scoresxml/20187479.xml b/schemagen/scoresxml/20187479.xml
new file mode 100644 (file)
index 0000000..ea8f85a
--- /dev/null
@@ -0,0 +1 @@
+<?xml version="1.0" standalone="no" ?>\r<!DOCTYPE message PUBLIC "-//TSN//DTD Scores 1.0/EN" "scoresxml.dtd">\r<message>\r<XML_File_ID>20187479</XML_File_ID>\r<heading>BC-AFP+YX9:YX8*  7  0 1R 4:40</heading>\r<game_id>42485</game_id>\r<schedule_id>42485</schedule_id>\r<tsnupdate>True</tsnupdate>\r<category>Scores</category>\r<sport>CFOOT</sport>\r<seasontype>Regular</seasontype>\r<game>\r<vteam id="YX9">American</vteam>\r<hteam id="YX8">National</hteam>\r<vscore>7</vscore>\r<hscore>0</hscore>\r<time_r>4:40</time_r>\r<status numeral="1" type="P">1 Qtr</status>\r</game>\r<time_stamp> January 18, 2014, at 06:37 PM ET </time_stamp>\r</message>\r
\ No newline at end of file