From: Michael Orlitzky Date: Tue, 17 Jun 2014 13:32:06 +0000 (-0400) Subject: Add SportInfo support for MLBHitByPitchXML.dtd. X-Git-Tag: 0.0.6~167 X-Git-Url: https://gitweb.michael.orlitzky.com/?a=commitdiff_plain;h=58104bf958aebf1c3362faa16e9b93008c78c707;p=dead%2Fhtsn-import.git Add SportInfo support for MLBHitByPitchXML.dtd. --- diff --git a/doc/man1/htsn-import.1 b/doc/man1/htsn-import.1 index c6de8cf..72725a0 100644 --- a/doc/man1/htsn-import.1 +++ b/doc/man1/htsn-import.1 @@ -184,6 +184,8 @@ mlbdoublesleadersxml.dtd MLBGamesPlayedXML.dtd .IP \[bu] MLBGIDPXML.dtd +.IP \[bu] +MLBHitByPitchXML.dtd .RE .P The GameInfo and SportInfo types do not have their own top-level diff --git a/schema/MLBHitByPitchXML.dtd b/schema/MLBHitByPitchXML.dtd new file mode 100644 index 0000000..942a2d9 --- /dev/null +++ b/schema/MLBHitByPitchXML.dtd @@ -0,0 +1,24 @@ + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/schemagen/MLBHitByPitchXML/MLBHitByPitchXML.xml b/schemagen/MLBHitByPitchXML/MLBHitByPitchXML.xml new file mode 100644 index 0000000..fcf53ea --- /dev/null +++ b/schemagen/MLBHitByPitchXML/MLBHitByPitchXML.xml @@ -0,0 +1,250 @@ + + + +17 +AAX%AL-HITBYPITCH-LEADERS +Statistics +MLB +2002 AL Hit By Pitch Leaders ++1 +David Eckstein, ANA +9 +262 + ++ +Melvin Mora, BAL +9 +261 + ++3 +Jason Giambi, NYY +7 +279 + ++ +Nick Johnson, NYY +7 +227 + ++ +Jeff Cirillo, SEA +7 +248 + ++6 +Carlos Delgado, TOR +6 +264 + ++ +Shea Hillenbrand, BOS +6 +297 + ++ +Tony Batista, BAL +6 +276 + ++ +Corey Koskie, MIN +6 +222 + ++10 +Jim Thome, CLE +5 +251 + ++ +Ricky Gutierrez, CLE +5 +226 + ++ +Brad Fullmer, ANA +5 +220 + ++ +Adam Kennedy, ANA +5 +223 + ++ +Doug Mientkiewicz, MIN +5 +235 + ++ +A.J. Pierzynski, MIN +5 +216 + ++ +Desi Relaford, SEA +5 +151 + ++ +Mike Cameron, SEA +5 +261 + ++ +Alex Rodriguez, TEX +5 +294 + ++ +Randy Velarde, OAK +5 +97 + ++20 +Matt Lawton, CLE +4 +266 + ++ +Shannon Stewart, TOR +4 +244 + ++ +Omar Vizquel, CLE +4 +275 + ++ +Rickey Henderson, BOS +4 +111 + ++ +Alfonso Soriano, NYY +4 +326 + ++ +Derek Jeter, NYY +4 +319 + ++ +Rondell White, NYY +4 +233 + ++ +Joe Randa, KC +4 +234 + ++ +Carlos Febles, KC +4 +209 + ++ +Ray Durham, SOX +4 +253 + ++ +Scott Hatteberg, OAK +4 +236 + ++ +Miguel Tejada, OAK +4 +316 + ++ +Randy Winn, TB +4 +295 + ++ +Steve Cox, TB +4 +278 + ++ +Ben Grieve, TB +4 +247 + ++ +Chris Gomez, TB +4 +235 + ++ +Herbert Perry, TEX +4 +182 + ++ +Brook Fordyce, BAL +4 +72 + ++ +Ramon Santiago, DET +4 +130 + ++39 +Ellis Burks, CLE +3 +246 + ++ +Tim Salmon, ANA +3 +260 + + June 27, 2002, at 11:51 AM ET + diff --git a/src/TSN/XML/SportInfo.hs b/src/TSN/XML/SportInfo.hs index 27817fb..0196795 100644 --- a/src/TSN/XML/SportInfo.hs +++ b/src/TSN/XML/SportInfo.hs @@ -109,7 +109,7 @@ dtds = "mlbdoublesleadersxml.dtd", "MLBGamesPlayedXML.dtd", "MLBGIDPXML.dtd", - "MLBHitByPitchXML.dtd", -- no dtd + "MLBHitByPitchXML.dtd", "mlbhitsleadersxml.dtd", -- no dtd "mlbhomerunsxml.dtd", -- no dtd "MLBHRFreqXML.dtd", -- no dtd @@ -353,7 +353,8 @@ sport_info_test_files = "mlbbattingavgxml.xml", "mlbdoublesleadersxml.xml", "MLBGamesPlayedXML.xml", - "MLBGIDPXML.xml" + "MLBGIDPXML.xml", + "MLBHitByPitchXML.xml" ] diff --git a/test/xml/sportinfo/MLBHitByPitchXML.dtd b/test/xml/sportinfo/MLBHitByPitchXML.dtd new file mode 100644 index 0000000..942a2d9 --- /dev/null +++ b/test/xml/sportinfo/MLBHitByPitchXML.dtd @@ -0,0 +1,24 @@ + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/test/xml/sportinfo/MLBHitByPitchXML.xml b/test/xml/sportinfo/MLBHitByPitchXML.xml new file mode 100644 index 0000000..cf85268 --- /dev/null +++ b/test/xml/sportinfo/MLBHitByPitchXML.xml @@ -0,0 +1,250 @@ + + + +884717 +AAX%AL-HITBYPITCH-LEADERS +Statistics +MLB +2002 AL Hit By Pitch Leaders ++1 +David Eckstein, ANA +9 +262 + ++ +Melvin Mora, BAL +9 +261 + ++3 +Jason Giambi, NYY +7 +279 + ++ +Nick Johnson, NYY +7 +227 + ++ +Jeff Cirillo, SEA +7 +248 + ++6 +Carlos Delgado, TOR +6 +264 + ++ +Shea Hillenbrand, BOS +6 +297 + ++ +Tony Batista, BAL +6 +276 + ++ +Corey Koskie, MIN +6 +222 + ++10 +Jim Thome, CLE +5 +251 + ++ +Ricky Gutierrez, CLE +5 +226 + ++ +Brad Fullmer, ANA +5 +220 + ++ +Adam Kennedy, ANA +5 +223 + ++ +Doug Mientkiewicz, MIN +5 +235 + ++ +A.J. Pierzynski, MIN +5 +216 + ++ +Desi Relaford, SEA +5 +151 + ++ +Mike Cameron, SEA +5 +261 + ++ +Alex Rodriguez, TEX +5 +294 + ++ +Randy Velarde, OAK +5 +97 + ++20 +Matt Lawton, CLE +4 +266 + ++ +Shannon Stewart, TOR +4 +244 + ++ +Omar Vizquel, CLE +4 +275 + ++ +Rickey Henderson, BOS +4 +111 + ++ +Alfonso Soriano, NYY +4 +326 + ++ +Derek Jeter, NYY +4 +319 + ++ +Rondell White, NYY +4 +233 + ++ +Joe Randa, KC +4 +234 + ++ +Carlos Febles, KC +4 +209 + ++ +Ray Durham, SOX +4 +253 + ++ +Scott Hatteberg, OAK +4 +236 + ++ +Miguel Tejada, OAK +4 +316 + ++ +Randy Winn, TB +4 +295 + ++ +Steve Cox, TB +4 +278 + ++ +Ben Grieve, TB +4 +247 + ++ +Chris Gomez, TB +4 +235 + ++ +Herbert Perry, TEX +4 +182 + ++ +Brook Fordyce, BAL +4 +72 + ++ +Ramon Santiago, DET +4 +130 + ++39 +Ellis Burks, CLE +3 +246 + ++ +Tim Salmon, ANA +3 +260 + + June 27, 2002, at 11:51 AM ET +