by their DTDs. We currently support documents with the following DTDs:
.IP \[bu] 2
Auto_Racing_Schedule_XML.dtd
+.IP \[bu] 2
+CBASK_Lineup_XML.dtd (GameInfo)
.IP \[bu]
Heartbeat.dtd
.IP \[bu]
--- /dev/null
+<!ELEMENT message (XML_File_ID, heading , game_id , schedule_id , category , sport , title , vteam , hteam , vteam , hteam , vteam , hteam , vteam , hteam , vteam , hteam , officials? , time_stamp )>\r
+\r
+<!ELEMENT XML_File_ID (#PCDATA )>\r
+\r
+<!ELEMENT heading (#PCDATA )>\r
+\r
+<!ELEMENT game_id (#PCDATA )>\r
+\r
+<!ELEMENT schedule_id (#PCDATA )>\r
+\r
+<!ELEMENT category (#PCDATA )>\r
+\r
+<!ELEMENT sport (#PCDATA )>\r
+\r
+<!ELEMENT title (#PCDATA )>\r
+\r
+<!ELEMENT vteam (player )>\r
+<!ATTLIST vteam name CDATA #REQUIRED >\r
+<!ELEMENT player (#PCDATA )>\r
+<!ATTLIST player position CDATA #REQUIRED >\r
+<!ELEMENT hteam (player )>\r
+<!ATTLIST hteam name CDATA #REQUIRED >\r
+<!ELEMENT officials (#PCDATA )>\r
+\r
+<!ELEMENT time_stamp (#PCDATA )>\r
+\r
-- make sure that we are really receiving XML for these DTDs
-- (i.e. the names are correct).
--
+-- Those marked \"TSN DTD\" are the ones for which we did not
+-- receive any XML during implementation; therefore the TSN DTD was
+-- used. This matters because it is almost certainly incorrect, so
+-- we can expect import failures when we finally do see some XML.
+--
dtds :: [String]
dtds =
- [ "CBASK_Lineup_XML.dtd", -- missing DTD
+ [ "CBASK_Lineup_XML.dtd", -- TSN DTD
"cbaskpreviewxml.dtd", -- missing DTD
"cflpreviewxml.dtd", -- missing DTD
"Matchup_NBA_NHL_XML.dtd", -- missing DTD
--
gameinfo_test_files :: [FilePath]
gameinfo_test_files =
- [ "test/xml/gameinfo/MLB_Gaming_Matchup_XML.xml",
+ [ "test/xml/gameinfo/CBASK_Lineup_XML.xml",
+ "test/xml/gameinfo/MLB_Gaming_Matchup_XML.xml",
"test/xml/gameinfo/MLB_Lineup_XML.xml",
"test/xml/gameinfo/MLB_Matchup_XML.xml",
"test/xml/gameinfo/mlbpreviewxml.xml",
--- /dev/null
+<!ELEMENT message (XML_File_ID, heading , game_id , schedule_id , category , sport , title , vteam , hteam , vteam , hteam , vteam , hteam , vteam , hteam , vteam , hteam , officials? , time_stamp )>\r
+\r
+<!ELEMENT XML_File_ID (#PCDATA )>\r
+\r
+<!ELEMENT heading (#PCDATA )>\r
+\r
+<!ELEMENT game_id (#PCDATA )>\r
+\r
+<!ELEMENT schedule_id (#PCDATA )>\r
+\r
+<!ELEMENT category (#PCDATA )>\r
+\r
+<!ELEMENT sport (#PCDATA )>\r
+\r
+<!ELEMENT title (#PCDATA )>\r
+\r
+<!ELEMENT vteam (player )>\r
+<!ATTLIST vteam name CDATA #REQUIRED >\r
+<!ELEMENT player (#PCDATA )>\r
+<!ATTLIST player position CDATA #REQUIRED >\r
+<!ELEMENT hteam (player )>\r
+<!ATTLIST hteam name CDATA #REQUIRED >\r
+<!ELEMENT officials (#PCDATA )>\r
+\r
+<!ELEMENT time_stamp (#PCDATA )>\r
+\r
--- /dev/null
+<?xml version="1.0" standalone="no" ?>\r
+<!DOCTYPE message PUBLIC "-//TSN//DTD Statistics 1.0/EN" "CBASK_Lineup_XML.dtd">\r
+<message>\r
+<XML_File_ID>17</XML_File_ID>\r
+<heading>AEB;LINEUP-CANISIUS-RIDER</heading>\r
+<game_id>97865</game_id>\r
+<schedule_id>10199</schedule_id>\r
+<category>Lineups</category>\r
+<sport>CBASK</sport>\r
+<title>Probable Starting Lineup: Canisius at Rider</title>\r
+<vteam name ="Canisius">\r
+<player position ="F">Hodari Mallory</player>\r
+</vteam>\r
+<hteam name ="Rider">\r
+<player position ="F">Edwin Muniz</player>\r
+</hteam>\r
+<vteam name ="Canisius">\r
+<player position ="F">Richard Jones</player>\r
+</vteam>\r
+<hteam name ="Rider">\r
+<player position ="C">Robert Reed</player>\r
+</hteam>\r
+<vteam name ="Canisius">\r
+<player position ="C">Yaku Moton-Spruill</player>\r
+</vteam>\r
+<hteam name ="Rider">\r
+<player position ="G">Jerry Johnson</player>\r
+</hteam>\r
+<vteam name ="Canisius">\r
+<player position ="G">Brian Dux</player>\r
+</vteam>\r
+<hteam name ="Rider">\r
+<player position ="G">Robert Taylor</player>\r
+</hteam>\r
+<vteam name ="Canisius">\r
+<player position ="G">Kevin Downey</player>\r
+</vteam>\r
+<hteam name ="Rider">\r
+<player position ="G">Laurence Young</player>\r
+</hteam>\r
+<time_stamp> January 24, 2003, at 11:55 AM ET </time_stamp>\r
+</message>\r