From 57782578adc2b1aa463efcf4b85627b88bda681d Mon Sep 17 00:00:00 2001 From: Michael Orlitzky Date: Mon, 9 Jun 2014 14:38:43 -0400 Subject: [PATCH] Add GameInfo support for cbaskpreviewxml.dtd. --- doc/man1/htsn-import.1 | 2 + schema/cbaskpreviewxml.dtd | 18 +++++ schemagen/cbaskpreviewxml/cbaskpreviewxml.xml | 75 +++++++++++++++++++ src/TSN/XML/GameInfo.hs | 3 +- test/xml/gameinfo/cbaskpreviewxml.dtd | 18 +++++ test/xml/gameinfo/cbaskpreviewxml.xml | 75 +++++++++++++++++++ 6 files changed, 190 insertions(+), 1 deletion(-) create mode 100644 schema/cbaskpreviewxml.dtd create mode 100644 schemagen/cbaskpreviewxml/cbaskpreviewxml.xml create mode 100644 test/xml/gameinfo/cbaskpreviewxml.dtd create mode 100644 test/xml/gameinfo/cbaskpreviewxml.xml diff --git a/doc/man1/htsn-import.1 b/doc/man1/htsn-import.1 index 9f565a6..78bcc62 100644 --- a/doc/man1/htsn-import.1 +++ b/doc/man1/htsn-import.1 @@ -51,6 +51,8 @@ by their DTDs. We currently support documents with the following DTDs: Auto_Racing_Schedule_XML.dtd .IP \[bu] 2 CBASK_Lineup_XML.dtd (GameInfo) +.IP \[bu] 2 +cbaskpreviewxml.dtd (GameInfo) .IP \[bu] Heartbeat.dtd .IP \[bu] diff --git a/schema/cbaskpreviewxml.dtd b/schema/cbaskpreviewxml.dtd new file mode 100644 index 0000000..b406875 --- /dev/null +++ b/schema/cbaskpreviewxml.dtd @@ -0,0 +1,18 @@ + + + + + + + + + + + + + + + + + + diff --git a/schemagen/cbaskpreviewxml/cbaskpreviewxml.xml b/schemagen/cbaskpreviewxml/cbaskpreviewxml.xml new file mode 100644 index 0000000..c33e5d2 --- /dev/null +++ b/schemagen/cbaskpreviewxml/cbaskpreviewxml.xml @@ -0,0 +1,75 @@ + + + +6796809 +AEV!PREVIEW-MIAFLA-MISSST +32991 +32991 +Previews +CBASK +12/13/2007 +08:00 PM +Miami-Florida +Miss State +Miami-Florida (8-0) at Mississippi State (5-3) + Thursday, December 13th, 8:00 p.m. (et) + + FACTS & STATS: Site: Humphrey Coliseum (10,500) -- Starkville, Mississippi. + Television: FSN. Home Record: Miami 4-0, Mississippi State 4-1. Away Record: + Miami 1-0, Mississippi State 0-0. Neutral Record: Miami 3-0, Mississippi State + 1-2. Conference Record: Miami 0-0, Mississippi State 0-0. Series Record: + Mississippi State leads, 2-1. + + + +

+ GAME NOTES: The Miami Hurricanes are 8-0 under fourth-year head coach Frank + Haith, and they figure to be tested on the road tonight by the Mississippi + State Bulldogs in a non-league contest. Miami is one of just 15 teams out of + 328 Division I programs that began the week undefeated. The Hurricanes are + coming off a 67-53 decision over Florida International, and while the schedule + has been a bit soft thus far, they did knock off Providence and VCU along with + St. John's. Mississippi State enters tonight's game with a 5-3 record, + including a 4-1 mark at home. The Bulldogs have won their last two games, + including an 84-59 romp over Southeastern Louisiana on Saturday. Mississippi + State owns a 2-1 series lead over Miami, and the Bulldogs crushed the 'Canes a + year ago in Coral Gables. + +

+

+ Miami has achieved outstanding balance at the offensive end of the floor, as + five players are scoring at least 9.0 ppg. Jack McClinton leads the squad with + 12.2 ppg, and he is shooting a blistering 55.2 percent from three-point range. + James Dews is close behind with 11.4 ppg on 51.5 percent accuracy from behind + the arc, and Anthony King is contributing 10.8 ppg and 9.1 rpg. Strong defense + has been key to the success of the Hurricanes, as they are limiting foes to + 58.5 ppg on 36.2 percent shooting from the field. In Saturday's 14-point + victory over Florida International, Dews and Dwayne Collins scored 14 points + apiece, while Jimmy Graham added 10 points. The Hurricanes limited the Golden + Panthers to 32.3 percent overall shooting in that clash. + +

+

+ Mississippi State swingman Jamont Gordon is one of the most underrated players + in all of college basketball. Overshadowed in the past by more high profile + players in the SEC, Gordon continues to fill the stat sheet on the strength of + his tremendous versatility. Averaging 18.4 ppg this season, Gordon is also + pulling down 6.0 rpg to go along with 30 assists. He gets some help from + Charles Rhodes, who is scoring 15.9 ppg on 56.4 percent shooting from the + field to complement his 7.1 rpg. Barry Stewart is posting 10.8 ppg, while Ben + Hansbrough rounds out a foursome of double-digit scorers with 10.0 ppg. The + Bulldogs are scoring 72.8 ppg, while allowing 62.8 ppg to the opposition. In + the romp over Southeastern Louisiana last time out, Gordon poured in 25 + points. MSU offset 21 turnovers by shooting 52.5 percent from the field. + +

+

+ Expect Miami to lose its first game tonight, as MSU is a formidable opponent + that has the advantage of playing at home. The Bulldogs get another big effort + from Gordon, en route to the win. + +

+
+Mississippi State 68, Miami-Florida 63 + December 13, 2007, at 01:31 PM ET +
diff --git a/src/TSN/XML/GameInfo.hs b/src/TSN/XML/GameInfo.hs index dcff90c..4cb325c 100644 --- a/src/TSN/XML/GameInfo.hs +++ b/src/TSN/XML/GameInfo.hs @@ -68,7 +68,7 @@ import Xml ( dtds :: [String] dtds = [ "CBASK_Lineup_XML.dtd", -- TSN DTD - "cbaskpreviewxml.dtd", -- missing DTD + "cbaskpreviewxml.dtd", "cflpreviewxml.dtd", -- missing DTD "Matchup_NBA_NHL_XML.dtd", -- missing DTD "mlbpreviewxml.dtd", @@ -192,6 +192,7 @@ gameinfo_tests = gameinfo_test_files :: [FilePath] gameinfo_test_files = [ "test/xml/gameinfo/CBASK_Lineup_XML.xml", + "test/xml/gameinfo/cbaskpreviewxml.xml", "test/xml/gameinfo/MLB_Gaming_Matchup_XML.xml", "test/xml/gameinfo/MLB_Lineup_XML.xml", "test/xml/gameinfo/MLB_Matchup_XML.xml", diff --git a/test/xml/gameinfo/cbaskpreviewxml.dtd b/test/xml/gameinfo/cbaskpreviewxml.dtd new file mode 100644 index 0000000..b406875 --- /dev/null +++ b/test/xml/gameinfo/cbaskpreviewxml.dtd @@ -0,0 +1,18 @@ + + + + + + + + + + + + + + + + + + diff --git a/test/xml/gameinfo/cbaskpreviewxml.xml b/test/xml/gameinfo/cbaskpreviewxml.xml new file mode 100644 index 0000000..c33e5d2 --- /dev/null +++ b/test/xml/gameinfo/cbaskpreviewxml.xml @@ -0,0 +1,75 @@ + + + +6796809 +AEV!PREVIEW-MIAFLA-MISSST +32991 +32991 +Previews +CBASK +12/13/2007 +08:00 PM +Miami-Florida +Miss State +Miami-Florida (8-0) at Mississippi State (5-3) + Thursday, December 13th, 8:00 p.m. (et) + + FACTS & STATS: Site: Humphrey Coliseum (10,500) -- Starkville, Mississippi. + Television: FSN. Home Record: Miami 4-0, Mississippi State 4-1. Away Record: + Miami 1-0, Mississippi State 0-0. Neutral Record: Miami 3-0, Mississippi State + 1-2. Conference Record: Miami 0-0, Mississippi State 0-0. Series Record: + Mississippi State leads, 2-1. + + + +

+ GAME NOTES: The Miami Hurricanes are 8-0 under fourth-year head coach Frank + Haith, and they figure to be tested on the road tonight by the Mississippi + State Bulldogs in a non-league contest. Miami is one of just 15 teams out of + 328 Division I programs that began the week undefeated. The Hurricanes are + coming off a 67-53 decision over Florida International, and while the schedule + has been a bit soft thus far, they did knock off Providence and VCU along with + St. John's. Mississippi State enters tonight's game with a 5-3 record, + including a 4-1 mark at home. The Bulldogs have won their last two games, + including an 84-59 romp over Southeastern Louisiana on Saturday. Mississippi + State owns a 2-1 series lead over Miami, and the Bulldogs crushed the 'Canes a + year ago in Coral Gables. + +

+

+ Miami has achieved outstanding balance at the offensive end of the floor, as + five players are scoring at least 9.0 ppg. Jack McClinton leads the squad with + 12.2 ppg, and he is shooting a blistering 55.2 percent from three-point range. + James Dews is close behind with 11.4 ppg on 51.5 percent accuracy from behind + the arc, and Anthony King is contributing 10.8 ppg and 9.1 rpg. Strong defense + has been key to the success of the Hurricanes, as they are limiting foes to + 58.5 ppg on 36.2 percent shooting from the field. In Saturday's 14-point + victory over Florida International, Dews and Dwayne Collins scored 14 points + apiece, while Jimmy Graham added 10 points. The Hurricanes limited the Golden + Panthers to 32.3 percent overall shooting in that clash. + +

+

+ Mississippi State swingman Jamont Gordon is one of the most underrated players + in all of college basketball. Overshadowed in the past by more high profile + players in the SEC, Gordon continues to fill the stat sheet on the strength of + his tremendous versatility. Averaging 18.4 ppg this season, Gordon is also + pulling down 6.0 rpg to go along with 30 assists. He gets some help from + Charles Rhodes, who is scoring 15.9 ppg on 56.4 percent shooting from the + field to complement his 7.1 rpg. Barry Stewart is posting 10.8 ppg, while Ben + Hansbrough rounds out a foursome of double-digit scorers with 10.0 ppg. The + Bulldogs are scoring 72.8 ppg, while allowing 62.8 ppg to the opposition. In + the romp over Southeastern Louisiana last time out, Gordon poured in 25 + points. MSU offset 21 turnovers by shooting 52.5 percent from the field. + +

+

+ Expect Miami to lose its first game tonight, as MSU is a formidable opponent + that has the advantage of playing at home. The Bulldogs get another big effort + from Gordon, en route to the win. + +

+
+Mississippi State 68, Miami-Florida 63 + December 13, 2007, at 01:31 PM ET +
-- 2.44.2