]> gitweb.michael.orlitzky.com - dead/htsn-import.git/commitdiff
Add test XML for Schedule_Changes_XML.dtd.
authorMichael Orlitzky <michael@orlitzky.com>
Fri, 4 Jul 2014 04:23:10 +0000 (00:23 -0400)
committerMichael Orlitzky <michael@orlitzky.com>
Fri, 4 Jul 2014 04:23:10 +0000 (00:23 -0400)
test/xml/Schedule_Changes_XML.dtd [new file with mode: 0644]
test/xml/Schedule_Changes_XML.xml [new file with mode: 0644]

diff --git a/test/xml/Schedule_Changes_XML.dtd b/test/xml/Schedule_Changes_XML.dtd
new file mode 100644 (file)
index 0000000..757f9a6
--- /dev/null
@@ -0,0 +1,24 @@
+<!ELEMENT XML_File_ID (#PCDATA)>
+<!ELEMENT heading (#PCDATA)>
+<!ELEMENT category (#PCDATA)>
+<!ELEMENT sport (#PCDATA)>
+<!ELEMENT Schedule_ID (#PCDATA)>
+<!ELEMENT Game_Date (#PCDATA)>
+<!ELEMENT Game_Time (#PCDATA)>
+<!ELEMENT Location (#PCDATA)>
+<!ELEMENT Away_Team (#PCDATA)>
+<!ELEMENT Home_Team (#PCDATA)>
+<!ELEMENT vscore (#PCDATA)>
+<!ELEMENT hscore (#PCDATA)>
+<!ELEMENT status (#PCDATA)>
+<!ELEMENT notes (#PCDATA)>
+<!ELEMENT SC_Listing ( ( Schedule_ID, Game_Date, Game_Time, Location, Away_Team, Home_Team, vscore, hscore, status, notes ) )>
+<!ELEMENT Schedule_Change ( SC_Listing* )>
+<!ELEMENT time_stamp (#PCDATA)>
+<!ELEMENT message ( ( XML_File_ID, heading, category, sport, Schedule_Change*, time_stamp ) )>
+
+<!ATTLIST Away_Team AT_ID CDATA #REQUIRED>
+<!ATTLIST Home_Team HT_ID CDATA #REQUIRED>
+<!ATTLIST status numeral CDATA #REQUIRED>
+<!ATTLIST SC_Listing type CDATA #REQUIRED>
+<!ATTLIST Schedule_Change Sport CDATA #REQUIRED>
diff --git a/test/xml/Schedule_Changes_XML.xml b/test/xml/Schedule_Changes_XML.xml
new file mode 100644 (file)
index 0000000..09a3156
--- /dev/null
@@ -0,0 +1 @@
+<?xml version="1.0" standalone="no" ?>\r<!DOCTYPE message PUBLIC "-//TSN//DTD Statistics 1.0/EN" "Schedule_Changes_XML.dtd">\r<message>\r<XML_File_ID>21236989</XML_File_ID>\r<heading>AOB%SCHED-CHANGE</heading>\r<category>Statistics</category>\r<sport>OTHER</sport>\r<Schedule_Change Sport="NCAA_Baseball">\r<SC_Listing type="Change">\r<Schedule_ID>1665</Schedule_ID>\r<Game_Date>06/06/2014</Game_Date>\r<Game_Time>04:00 PM</Game_Time>\r<Location>\rAustin Super Regional\r</Location>\r<Away_Team AT_ID="U05">Texas Longhorns</Away_Team>\r<Home_Team HT_ID="U23">Houston Cougars</Home_Team>\r<vscore>4</vscore>\r<hscore>2</hscore>\r<status numeral="18">FINAL</status>\r<notes>\rFINAL\r</notes>\r</SC_Listing>\r<SC_Listing type="Change">\r<Schedule_ID>1666</Schedule_ID>\r<Game_Date>06/07/2014</Game_Date>\r<Game_Time>02:00 PM</Game_Time>\r<Location>\rAustin Super Regional\r</Location>\r<Away_Team AT_ID="U23">Houston Cougars</Away_Team>\r<Home_Team HT_ID="U05">Texas Longhorns</Home_Team>\r<vscore>0</vscore>\r<hscore>0</hscore>\r<status numeral="0"></status>\r<notes>\r\r</notes>\r</SC_Listing>\r</Schedule_Change>\r<Schedule_Change Sport="Minor_League_Baseball">\r<SC_Listing type="Change">\r<Schedule_ID>78340</Schedule_ID>\r<Game_Date>06/07/2014</Game_Date>\r<Game_Time>03:05 PM</Game_Time>\r<Location>\rThe Baseball Grounds of Jacksonville\r</Location>\r<Away_Team AT_ID="355">Tennessee Smokies</Away_Team>\r<Home_Team HT_ID="343">Jacksonville Suns</Home_Team>\r<vscore>0</vscore>\r<hscore>0</hscore>\r<status numeral="0"></status>\r<notes>\r\r</notes>\r</SC_Listing>\r<SC_Listing type="Change">\r<Schedule_ID>78328</Schedule_ID>\r<Game_Date>06/07/2014</Game_Date>\r<Game_Time>05:00 PM</Game_Time>\r<Location>\rState Mutual Stadium\r</Location>\r<Away_Team AT_ID="FZ5">Greenville Drive</Away_Team>\r<Home_Team HT_ID="L35">Rome Braves</Home_Team>\r<vscore>0</vscore>\r<hscore>0</hscore>\r<status numeral="0"></status>\r<notes>\r\r</notes>\r</SC_Listing>\r<SC_Listing type="Deletion">\r<Schedule_ID>79870</Schedule_ID>\r<Game_Date>06/07/2014</Game_Date>\r<Game_Time>07:30 PM</Game_Time>\r<Location>\rAshford University Field\r</Location>\r<Away_Team AT_ID="L07">Wisconsin Timber Rattlers</Away_Team>\r<Home_Team HT_ID="K97">Clinton LumberKings</Home_Team>\r<vscore>0</vscore>\r<hscore>0</hscore>\r<status numeral="0"></status>\r<notes>\r\r</notes>\r</SC_Listing>\r<SC_Listing type="Change">\r<Schedule_ID>79871</Schedule_ID>\r<Game_Date>06/07/2014</Game_Date>\r<Game_Time>08:00 PM</Game_Time>\r<Location>\rMontgomery River Walk Stadium\r</Location>\r<Away_Team AT_ID="ZX8">Pensacola Blue Wahoos</Away_Team>\r<Home_Team HT_ID="349">Montgomery Biscuits</Home_Team>\r<vscore>0</vscore>\r<hscore>0</hscore>\r<status numeral="0"></status>\r<notes>\r\r</notes>\r</SC_Listing>\r<SC_Listing type="Change">\r<Schedule_ID>79869</Schedule_ID>\r<Game_Date>06/07/2014</Game_Date>\r<Game_Time>08:00 PM</Game_Time>\r<Location>\rState Mutual Stadium\r</Location>\r<Away_Team AT_ID="FZ5">Greenville Drive</Away_Team>\r<Home_Team HT_ID="L35">Rome Braves</Home_Team>\r<vscore>0</vscore>\r<hscore>0</hscore>\r<status numeral="0"></status>\r<notes>\r\r</notes>\r</SC_Listing>\r</Schedule_Change>\r<Schedule_Change Sport="Minor_League_Hockey">\r<SC_Listing type="Change">\r<Schedule_ID>24934</Schedule_ID>\r<Game_Date>06/09/2014</Game_Date>\r<Game_Time>07:35 PM</Game_Time>\r<Location>\rU.S. Bank Arena\r</Location>\r<Away_Team AT_ID="AE1">Alaska Aces</Away_Team>\r<Home_Team HT_ID="AE5">Cincinnati Cyclones</Home_Team>\r<vscore>0</vscore>\r<hscore>0</hscore>\r<status numeral="0"></status>\r<notes>\r\r</notes>\r</SC_Listing>\r</Schedule_Change>\r<time_stamp> June 7, 2014, at 02:46 AM ET </time_stamp>\r</message>\r
\ No newline at end of file