From: Michael Orlitzky Date: Tue, 17 Jun 2014 13:41:19 +0000 (-0400) Subject: Add SportInfo support for mlbhitsleadersxml.dtd. X-Git-Tag: 0.0.6~166 X-Git-Url: https://gitweb.michael.orlitzky.com/?a=commitdiff_plain;h=135d4e076f037d3b5ab1d4bb769d2142b90fa0ab;p=dead%2Fhtsn-import.git Add SportInfo support for mlbhitsleadersxml.dtd. --- diff --git a/doc/man1/htsn-import.1 b/doc/man1/htsn-import.1 index 72725a0..7c48eb6 100644 --- a/doc/man1/htsn-import.1 +++ b/doc/man1/htsn-import.1 @@ -186,6 +186,8 @@ MLBGamesPlayedXML.dtd MLBGIDPXML.dtd .IP \[bu] MLBHitByPitchXML.dtd +.IP \[bu] +mlbhitsleadersxml.dtd .RE .P The GameInfo and SportInfo types do not have their own top-level diff --git a/schema/mlbhitsleadersxml.dtd b/schema/mlbhitsleadersxml.dtd new file mode 100644 index 0000000..bd7595d --- /dev/null +++ b/schema/mlbhitsleadersxml.dtd @@ -0,0 +1,26 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/schemagen/mlbhitsleadersxml/mlbhitsleadersxml.xml b/schemagen/mlbhitsleadersxml/mlbhitsleadersxml.xml new file mode 100644 index 0000000..37f995d --- /dev/null +++ b/schemagen/mlbhitsleadersxml/mlbhitsleadersxml.xml @@ -0,0 +1,290 @@ + + + +1702711 +AAX%AL-HITS-LEADERS +Statistics +MLB +2001 AL Hits Leaders ++1 +Ichiro Suzuki, SEA +126 +.349 +361 + ++2 +Shannon Stewart, TOR +109 +.323 +337 + ++3 +Mike Sweeney, KC +106 +.335 +316 + ++4 +Roberto Alomar, CLE +103 +.354 +291 + ++ +Bret Boone, SEA +103 +.326 +316 + ++6 +Juan Gonzalez, CLE +101 +.341 +296 + ++ +Manny Ramirez, BOS +101 +.331 +305 + ++8 +Alex Rodriguez, TEX +100 +.315 +317 + ++9 +Cristian Guzman, MIN +99 +.306 +324 + ++10 +Garret Anderson, ANA +92 +.273 +337 + ++ +Rey Sanchez, KC +92 +.300 +307 + ++12 +Derek Jeter, NYY +91 +.288 +316 + ++ +John Olerud, SEA +91 +.317 +287 + ++ +Darin Erstad, ANA +91 +.283 +322 + ++15 +Fred McGriff, TB +90 +.332 +271 + ++ +Jason Giambi, OAK +90 +.337 +267 + ++17 +Raul Mondesi, TOR +89 +.283 +315 + ++ +Doug Mientkiewicz, MIN +89 +.312 +285 + ++19 +Magglio Ordonez, SOX +87 +.304 +286 + ++ +Matt Lawton, MIN +87 +.299 +291 + ++ +Terrence Long, OAK +87 +.274 +317 + ++22 +Jermaine Dye, KC +85 +.283 +300 + ++ +Miguel Tejada, OAK +85 +.268 +317 + ++24 +Carlos Beltran, KC +83 +.266 +312 + ++ +Alex Gonzalez, TOR +83 +.257 +323 + ++26 +David Eckstein, ANA +82 +.283 +290 + ++27 +Carlos Lee, SOX +81 +.302 +268 + ++ +Edgar Martinez, SEA +81 +.303 +267 + ++ +Scott Brosius, NYY +81 +.290 +279 + ++30 +Carl Everett, BOS +80 +.284 +282 + ++ +Tino Martinez, NYY +80 +.260 +308 + ++ +Bernie Williams, NYY +80 +.324 +247 + ++33 +Omar Vizquel, CLE +79 +.262 +302 + ++ +Alfonso Soriano, NYY +79 +.272 +290 + ++35 +Jose Offerman, BOS +78 +.270 +289 + ++ +Brad Fullmer, TOR +78 +.265 +294 + ++ +Rafael Palmeiro, TEX +78 +.262 +298 + ++ +Damion Easley, DET +78 +.285 +274 + ++ +Paul O`Neill, NYY +78 +.260 +300 + ++ +Joe Randa, KC +78 +.256 +305 + + July 3, 2001, at 12:37 PM ET + diff --git a/src/TSN/XML/SportInfo.hs b/src/TSN/XML/SportInfo.hs index 0196795..9fda564 100644 --- a/src/TSN/XML/SportInfo.hs +++ b/src/TSN/XML/SportInfo.hs @@ -110,7 +110,7 @@ dtds = "MLBGamesPlayedXML.dtd", "MLBGIDPXML.dtd", "MLBHitByPitchXML.dtd", - "mlbhitsleadersxml.dtd", -- no dtd + "mlbhitsleadersxml.dtd", "mlbhomerunsxml.dtd", -- no dtd "MLBHRFreqXML.dtd", -- no dtd "MLBIntWalksXML.dtd", -- no dtd @@ -354,7 +354,8 @@ sport_info_test_files = "mlbdoublesleadersxml.xml", "MLBGamesPlayedXML.xml", "MLBGIDPXML.xml", - "MLBHitByPitchXML.xml" + "MLBHitByPitchXML.xml", + "mlbhitsleadersxml.xml" ] diff --git a/test/xml/sportinfo/mlbhitsleadersxml.dtd b/test/xml/sportinfo/mlbhitsleadersxml.dtd new file mode 100644 index 0000000..bd7595d --- /dev/null +++ b/test/xml/sportinfo/mlbhitsleadersxml.dtd @@ -0,0 +1,26 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/test/xml/sportinfo/mlbhitsleadersxml.xml b/test/xml/sportinfo/mlbhitsleadersxml.xml new file mode 100644 index 0000000..37f995d --- /dev/null +++ b/test/xml/sportinfo/mlbhitsleadersxml.xml @@ -0,0 +1,290 @@ + + + +1702711 +AAX%AL-HITS-LEADERS +Statistics +MLB +2001 AL Hits Leaders ++1 +Ichiro Suzuki, SEA +126 +.349 +361 + ++2 +Shannon Stewart, TOR +109 +.323 +337 + ++3 +Mike Sweeney, KC +106 +.335 +316 + ++4 +Roberto Alomar, CLE +103 +.354 +291 + ++ +Bret Boone, SEA +103 +.326 +316 + ++6 +Juan Gonzalez, CLE +101 +.341 +296 + ++ +Manny Ramirez, BOS +101 +.331 +305 + ++8 +Alex Rodriguez, TEX +100 +.315 +317 + ++9 +Cristian Guzman, MIN +99 +.306 +324 + ++10 +Garret Anderson, ANA +92 +.273 +337 + ++ +Rey Sanchez, KC +92 +.300 +307 + ++12 +Derek Jeter, NYY +91 +.288 +316 + ++ +John Olerud, SEA +91 +.317 +287 + ++ +Darin Erstad, ANA +91 +.283 +322 + ++15 +Fred McGriff, TB +90 +.332 +271 + ++ +Jason Giambi, OAK +90 +.337 +267 + ++17 +Raul Mondesi, TOR +89 +.283 +315 + ++ +Doug Mientkiewicz, MIN +89 +.312 +285 + ++19 +Magglio Ordonez, SOX +87 +.304 +286 + ++ +Matt Lawton, MIN +87 +.299 +291 + ++ +Terrence Long, OAK +87 +.274 +317 + ++22 +Jermaine Dye, KC +85 +.283 +300 + ++ +Miguel Tejada, OAK +85 +.268 +317 + ++24 +Carlos Beltran, KC +83 +.266 +312 + ++ +Alex Gonzalez, TOR +83 +.257 +323 + ++26 +David Eckstein, ANA +82 +.283 +290 + ++27 +Carlos Lee, SOX +81 +.302 +268 + ++ +Edgar Martinez, SEA +81 +.303 +267 + ++ +Scott Brosius, NYY +81 +.290 +279 + ++30 +Carl Everett, BOS +80 +.284 +282 + ++ +Tino Martinez, NYY +80 +.260 +308 + ++ +Bernie Williams, NYY +80 +.324 +247 + ++33 +Omar Vizquel, CLE +79 +.262 +302 + ++ +Alfonso Soriano, NYY +79 +.272 +290 + ++35 +Jose Offerman, BOS +78 +.270 +289 + ++ +Brad Fullmer, TOR +78 +.265 +294 + ++ +Rafael Palmeiro, TEX +78 +.262 +298 + ++ +Damion Easley, DET +78 +.285 +274 + ++ +Paul O`Neill, NYY +78 +.260 +300 + ++ +Joe Randa, KC +78 +.256 +305 + + July 3, 2001, at 12:37 PM ET +