From 950853c5271a58e4cebf36b281657e38389c3f19 Mon Sep 17 00:00:00 2001 From: Michael Orlitzky Date: Tue, 17 Jun 2014 06:38:18 -0400 Subject: [PATCH] Add SportInfo support for CBASK_TopTwentyFiveResult_XML.dtd. --- doc/man1/htsn-import.1 | 2 + schema/CBASK_TopTwentyFiveResult_XML.dtd | 23 ++ .../CBASK_TopTwentyFiveResult_XML.xml | 242 ++++++++++++++++++ src/TSN/XML/SportInfo.hs | 46 ++-- .../CBASK_TopTwentyFiveResult_XML.dtd | 23 ++ .../CBASK_TopTwentyFiveResult_XML.xml | 242 ++++++++++++++++++ 6 files changed, 556 insertions(+), 22 deletions(-) create mode 100644 schema/CBASK_TopTwentyFiveResult_XML.dtd create mode 100644 schemagen/CBASK_TopTwentyFiveResult_XML/CBASK_TopTwentyFiveResult_XML.xml create mode 100644 test/xml/sportinfo/CBASK_TopTwentyFiveResult_XML.dtd create mode 100644 test/xml/sportinfo/CBASK_TopTwentyFiveResult_XML.xml diff --git a/doc/man1/htsn-import.1 b/doc/man1/htsn-import.1 index c5c9ab7..d08a2bb 100644 --- a/doc/man1/htsn-import.1 +++ b/doc/man1/htsn-import.1 @@ -152,6 +152,8 @@ Cbask_Team_ThreePT_PCT_XML.dtd Cbask_Team_Win_Pct_XML.dtd .IP \[bu] Cbask_Top_Twenty_Five_XML.dtd +.IP \[bu] +CBASK_TopTwentyFiveResult_XML.dtd .RE .P The GameInfo and SportInfo types do not have their own top-level diff --git a/schema/CBASK_TopTwentyFiveResult_XML.dtd b/schema/CBASK_TopTwentyFiveResult_XML.dtd new file mode 100644 index 0000000..a6f35ee --- /dev/null +++ b/schema/CBASK_TopTwentyFiveResult_XML.dtd @@ -0,0 +1,23 @@ + + + + + + + + + + + + + + + + + + + + + + diff --git a/schemagen/CBASK_TopTwentyFiveResult_XML/CBASK_TopTwentyFiveResult_XML.xml b/schemagen/CBASK_TopTwentyFiveResult_XML/CBASK_TopTwentyFiveResult_XML.xml new file mode 100644 index 0000000..70f0c9d --- /dev/null +++ b/schemagen/CBASK_TopTwentyFiveResult_XML/CBASK_TopTwentyFiveResult_XML.xml @@ -0,0 +1,242 @@ + + + +2338088 +AEB%AP-CB-FARED +Statistics +CBASK + +AP Top-25 College Basketball Results and Schedule + + +Complete through December 29th + + ++ +Dec. 30th: vs. Northwestern State (Las Vegas) + + +Dec. 31st: vs. Cincinnati (Las Vegas) + + ++ +Jan. 1st: vs. Georgia Tech + + +Jan. 5th: vs. Texas A_N_M + + ++ +Jan. 3rd: at Texas A_N_M-Corpus Christi + + +Jan. 8th: at Texas Tech + + ++ +Dec. 30th: vs. Cleveland State + + +Jan. 2nd: vs. William _N_ Mary + + ++ +Dec. 30th: vs. North Carolina A_N_T + + +Jan. 2nd: at Virginia + + ++ +Jan. 2nd: vs. Clemson + + +Jan. 5th: vs. Princeton + + ++ +Dec. 30th: vs. Hofstra + + +Jan. 5th: at St. John's + + ++ +Jan. 5th: vs. South Carolina + + +Jan. 9th: vs. Kansas + + ++ +Jan. 1st: at Kansas + + +Jan. 6th: vs. Miami-Florida + + ++ +Jan. 2nd: vs. Bucknell + + +Jan. 5th: vs. Georgetown + + ++ +Dec. 30th: vs. Quinnipiac + + +Jan. 5th: vs. Boston College + + ++ +Dec. 30th: at Missouri + + +Jan. 6th: at Santa Clara + + ++ +Dec. 31st: vs. California + + +Jan. 2nd: vs. Stanford + + ++ +Dec. 30th: vs. Richmond (Fiesta Bowl Classic) + + +Jan. 2nd: vs. Arizona State + + ++ +Jan. 2nd: vs. UNLV + + +Jan. 6th: vs. Memphis + + ++ +Dec. 31st: vs. Saint Louis + + +Jan. 5th: vs. Michigan + + ++ +Dec. 30th: vs. St. John's (ECAC Holiday Festival) + + +Jan. 2nd: vs. West Virginia + + ++ +Jan. 1st: vs. New Orleans + + +Jan. 5th: at Vanderbilt + + ++ +Dec. 30th: vs. Eastern Kentucky + + +Jan. 2nd: vs. Tennessee State + + ++ +Jan. 5th: vs. La Salle + + +Jan. 8th: at Duquesne + + ++ +Dec. 30th: vs. Virginia Tech (Sugar Bowl Tournament) + + +Jan. 5th: vs. Auburn + + ++ +Dec. 30th: vs. Longwood (Las Vegas) + + +Dec. 31st: vs. Illinois (Las Vegas) + + ++ +Jan. 5th: at Penn State + + +Jan. 8th: vs. Northwestern + + ++ +Jan. 4th: vs. Mount St. Mary's + + +Jan. 8th: at North Carolina + + ++ +Jan. 2nd: vs. Wake Forest + + +Jan. 5th: vs. Western Kentucky + + + + December 30, 2004, at 01:52 PM ET + diff --git a/src/TSN/XML/SportInfo.hs b/src/TSN/XML/SportInfo.hs index b6d9154..fdf88f4 100644 --- a/src/TSN/XML/SportInfo.hs +++ b/src/TSN/XML/SportInfo.hs @@ -93,7 +93,7 @@ dtds = "Cbask_Team_ThreePT_PCT_XML.dtd", "Cbask_Team_Win_Pct_XML.dtd", "Cbask_Top_Twenty_Five_XML.dtd", - "CBASK_TopTwentyFiveResult_XML.dtd", -- no dtd + "CBASK_TopTwentyFiveResult_XML.dtd", "Cbask_Tourn_Awards_XML.dtd", -- no dtd "Cbask_Tourn_Champs_XML.dtd", -- no dtd "Cbask_Tourn_Indiv_XML.dtd", -- no dtd @@ -316,27 +316,29 @@ sport_info_tests = -- sport_info_test_files :: [FilePath] sport_info_test_files = - [ "test/xml/sportinfo/CBASK_3PPctXML.xml", - "test/xml/sportinfo/Cbask_All_Tourn_Teams_XML.xml", - "test/xml/sportinfo/CBASK_AssistsXML.xml", - "test/xml/sportinfo/Cbask_Awards_XML.xml", - "test/xml/sportinfo/CBASK_BlocksXML.xml", - "test/xml/sportinfo/Cbask_Conf_Standings_XML.xml", - "test/xml/sportinfo/Cbask_DivII_III_Indv_Stats_XML.xml", - "test/xml/sportinfo/Cbask_DivII_Team_Stats_XML.xml", - "test/xml/sportinfo/Cbask_DivIII_Team_Stats_XML.xml", - "test/xml/sportinfo/CBASK_FGPctXML.xml", - "test/xml/sportinfo/CBASK_FoulsXML.xml", - "test/xml/sportinfo/CBASK_FTPctXML.xml", - "test/xml/sportinfo/Cbask_Indv_Scoring_XML.xml", - "test/xml/sportinfo/CBASK_MinutesXML.xml", - "test/xml/sportinfo/Cbask_Polls_XML.xml", - "test/xml/sportinfo/CBASK_ReboundsXML.xml", - "test/xml/sportinfo/CBASK_ScoringLeadersXML.xml", - "test/xml/sportinfo/Cbask_Team_ThreePT_Made_XML.xml", - "test/xml/sportinfo/Cbask_Team_ThreePT_PCT_XML.xml", - "test/xml/sportinfo/Cbask_Team_Win_Pct_XML.xml", - "test/xml/sportinfo/Cbask_Top_Twenty_Five_XML.xml" + map ("test/xml/sportinfo/" ++) [ + "CBASK_3PPctXML.xml", + "Cbask_All_Tourn_Teams_XML.xml", + "CBASK_AssistsXML.xml", + "Cbask_Awards_XML.xml", + "CBASK_BlocksXML.xml", + "Cbask_Conf_Standings_XML.xml", + "Cbask_DivII_III_Indv_Stats_XML.xml", + "Cbask_DivII_Team_Stats_XML.xml", + "Cbask_DivIII_Team_Stats_XML.xml", + "CBASK_FGPctXML.xml", + "CBASK_FoulsXML.xml", + "CBASK_FTPctXML.xml", + "Cbask_Indv_Scoring_XML.xml", + "CBASK_MinutesXML.xml", + "Cbask_Polls_XML.xml", + "CBASK_ReboundsXML.xml", + "CBASK_ScoringLeadersXML.xml", + "Cbask_Team_ThreePT_Made_XML.xml", + "Cbask_Team_ThreePT_PCT_XML.xml", + "Cbask_Team_Win_Pct_XML.xml", + "Cbask_Top_Twenty_Five_XML.xml", + "CBASK_TopTwentyFiveResult_XML.xml" ] diff --git a/test/xml/sportinfo/CBASK_TopTwentyFiveResult_XML.dtd b/test/xml/sportinfo/CBASK_TopTwentyFiveResult_XML.dtd new file mode 100644 index 0000000..a6f35ee --- /dev/null +++ b/test/xml/sportinfo/CBASK_TopTwentyFiveResult_XML.dtd @@ -0,0 +1,23 @@ + + + + + + + + + + + + + + + + + + + + + + diff --git a/test/xml/sportinfo/CBASK_TopTwentyFiveResult_XML.xml b/test/xml/sportinfo/CBASK_TopTwentyFiveResult_XML.xml new file mode 100644 index 0000000..70f0c9d --- /dev/null +++ b/test/xml/sportinfo/CBASK_TopTwentyFiveResult_XML.xml @@ -0,0 +1,242 @@ + + + +2338088 +AEB%AP-CB-FARED +Statistics +CBASK + +AP Top-25 College Basketball Results and Schedule + + +Complete through December 29th + + ++ +Dec. 30th: vs. Northwestern State (Las Vegas) + + +Dec. 31st: vs. Cincinnati (Las Vegas) + + ++ +Jan. 1st: vs. Georgia Tech + + +Jan. 5th: vs. Texas A_N_M + + ++ +Jan. 3rd: at Texas A_N_M-Corpus Christi + + +Jan. 8th: at Texas Tech + + ++ +Dec. 30th: vs. Cleveland State + + +Jan. 2nd: vs. William _N_ Mary + + ++ +Dec. 30th: vs. North Carolina A_N_T + + +Jan. 2nd: at Virginia + + ++ +Jan. 2nd: vs. Clemson + + +Jan. 5th: vs. Princeton + + ++ +Dec. 30th: vs. Hofstra + + +Jan. 5th: at St. John's + + ++ +Jan. 5th: vs. South Carolina + + +Jan. 9th: vs. Kansas + + ++ +Jan. 1st: at Kansas + + +Jan. 6th: vs. Miami-Florida + + ++ +Jan. 2nd: vs. Bucknell + + +Jan. 5th: vs. Georgetown + + ++ +Dec. 30th: vs. Quinnipiac + + +Jan. 5th: vs. Boston College + + ++ +Dec. 30th: at Missouri + + +Jan. 6th: at Santa Clara + + ++ +Dec. 31st: vs. California + + +Jan. 2nd: vs. Stanford + + ++ +Dec. 30th: vs. Richmond (Fiesta Bowl Classic) + + +Jan. 2nd: vs. Arizona State + + ++ +Jan. 2nd: vs. UNLV + + +Jan. 6th: vs. Memphis + + ++ +Dec. 31st: vs. Saint Louis + + +Jan. 5th: vs. Michigan + + ++ +Dec. 30th: vs. St. John's (ECAC Holiday Festival) + + +Jan. 2nd: vs. West Virginia + + ++ +Jan. 1st: vs. New Orleans + + +Jan. 5th: at Vanderbilt + + ++ +Dec. 30th: vs. Eastern Kentucky + + +Jan. 2nd: vs. Tennessee State + + ++ +Jan. 5th: vs. La Salle + + +Jan. 8th: at Duquesne + + ++ +Dec. 30th: vs. Virginia Tech (Sugar Bowl Tournament) + + +Jan. 5th: vs. Auburn + + ++ +Dec. 30th: vs. Longwood (Las Vegas) + + +Dec. 31st: vs. Illinois (Las Vegas) + + ++ +Jan. 5th: at Penn State + + +Jan. 8th: vs. Northwestern + + ++ +Jan. 4th: vs. Mount St. Mary's + + +Jan. 8th: at North Carolina + + ++ +Jan. 2nd: vs. Wake Forest + + +Jan. 5th: vs. Western Kentucky + + + + December 30, 2004, at 01:52 PM ET + -- 2.43.2