From: Michael Orlitzky Date: Wed, 18 Jun 2014 15:25:15 +0000 (-0400) Subject: Add SportInfo support for mlbtotalbasesleadersxml.dtd. X-Git-Tag: 0.0.6~149 X-Git-Url: https://gitweb.michael.orlitzky.com/?a=commitdiff_plain;h=fd7f740c2f9e06c3b493af6edb9a5f2b4cf8fdd1;p=dead%2Fhtsn-import.git Add SportInfo support for mlbtotalbasesleadersxml.dtd. --- diff --git a/doc/man1/htsn-import.1 b/doc/man1/htsn-import.1 index 2bf8138..cce26ce 100644 --- a/doc/man1/htsn-import.1 +++ b/doc/man1/htsn-import.1 @@ -220,6 +220,8 @@ mlbstandxml.dtd mlbstandxml_preseason.dtd .IP \[bu] mlbstolenbasexml.dtd +.IP \[bu] +mlbtotalbasesleadersxml.dtd .RE .P The GameInfo and SportInfo types do not have their own top-level diff --git a/schema/mlbtotalbasesleadersxml.dtd b/schema/mlbtotalbasesleadersxml.dtd new file mode 100644 index 0000000..5c3eaeb --- /dev/null +++ b/schema/mlbtotalbasesleadersxml.dtd @@ -0,0 +1,38 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/schemagen/mlbtotalbasesleadersxml/mlbtotalbasesleadersxml.xml b/schemagen/mlbtotalbasesleadersxml/mlbtotalbasesleadersxml.xml new file mode 100644 index 0000000..2d3be9d --- /dev/null +++ b/schemagen/mlbtotalbasesleadersxml/mlbtotalbasesleadersxml.xml @@ -0,0 +1,530 @@ + + + +2121017 +AAX%AL-TOTALBASES-LEADERS +Statistics +MLB +2001 AL Total Bases Leaders ++1 +Mike Sweeney, KC +204 +.335 +316 +106 +35 +0 +21 +63 +.646 + ++2 +Manny Ramirez, BOS +198 +.331 +305 +101 +18 +2 +25 +82 +.649 + ++3 +Alex Rodriguez, TEX +190 +.315 +317 +100 +19 +1 +23 +67 +.599 + ++4 +Bret Boone, SEA +186 +.326 +316 +103 +16 +2 +21 +80 +.589 + ++5 +Juan Gonzalez, CLE +182 +.341 +296 +101 +18 +0 +21 +74 +.615 + ++6 +Jason Giambi, OAK +174 +.337 +267 +90 +25 +1 +19 +60 +.652 + ++7 +Ichiro Suzuki, SEA +168 +.349 +361 +126 +18 +6 +4 +38 +.465 + ++8 +Raul Mondesi, TOR +163 +.283 +315 +89 +20 +3 +16 +47 +.517 + ++9 +Shannon Stewart, TOR +162 +.323 +337 +109 +23 +6 +6 +35 +.481 + ++ +Cristian Guzman, MIN +162 +.306 +324 +99 +18 +12 +7 +31 +.500 + ++11 +Rafael Palmeiro, TEX +159 +.262 +298 +78 +18 +0 +21 +60 +.534 + ++ +Magglio Ordonez, SOX +159 +.304 +286 +87 +15 +0 +19 +54 +.556 + ++13 +Troy Glaus, ANA +158 +.250 +296 +74 +21 +0 +21 +52 +.534 + ++14 +Ellis Burks, CLE +157 +.295 +261 +77 +18 +1 +20 +53 +.602 + ++15 +Roberto Alomar, CLE +156 +.354 +291 +103 +17 +6 +8 +50 +.536 + ++16 +Jim Thome, CLE +151 +.276 +250 +69 +14 +1 +22 +53 +.604 + ++17 +Miguel Tejada, OAK +150 +.268 +317 +85 +17 +0 +16 +50 +.473 + ++18 +Carlos Delgado, TOR +149 +.250 +288 +72 +11 +0 +22 +54 +.517 + ++19 +Greg Vaughn, TB +148 +.247 +295 +73 +15 +0 +20 +56 +.502 + ++20 +Fred McGriff, TB +147 +.332 +271 +90 +15 +0 +14 +47 +.542 + ++21 +Doug Mientkiewicz, MIN +144 +.312 +285 +89 +20 +1 +11 +50 +.505 + ++22 +Edgar Martinez, SEA +142 +.303 +267 +81 +25 +0 +12 +64 +.532 + ++23 +Ivan Rodriguez, TEX +141 +.292 +264 +77 +14 +1 +16 +41 +.534 + ++ +Mike Cameron, SEA +141 +.270 +270 +73 +18 +4 +14 +54 +.522 + ++ +Carlos Lee, SOX +141 +.302 +268 +81 +17 +2 +13 +46 +.526 + ++ +Garret Anderson, ANA +141 +.273 +337 +92 +11 +1 +12 +53 +.418 + ++27 +John Olerud, SEA +139 +.317 +287 +91 +16 +1 +10 +55 +.484 + ++ +Paul Konerko, SOX +139 +.277 +274 +76 +15 +0 +16 +46 +.507 + ++ +Tino Martinez, NYY +139 +.260 +308 +80 +15 +1 +14 +57 +.451 + ++30 +Carlos Beltran, KC +137 +.266 +312 +83 +10 +4 +12 +42 +.439 + ++31 +Bernie Williams, NYY +136 +.324 +247 +80 +14 +0 +14 +46 +.551 + ++32 +Carl Everett, BOS +133 +.284 +282 +80 +18 +4 +9 +42 +.472 + ++33 +Terrence Long, OAK +132 +.274 +317 +87 +16 +1 +9 +43 +.416 + ++34 +Jorge Posada, NYY +131 +.310 +245 +76 +14 +1 +13 +61 +.535 + ++ +Scott Brosius, NYY +131 +.290 +279 +81 +16 +2 +10 +29 +.470 + ++36 +Jermaine Dye, KC +130 +.283 +300 +85 +12 +0 +11 +38 +.433 + ++ +Paul O`Neill, NYY +130 +.260 +300 +78 +17 +1 +11 +41 +.433 + ++38 +Ray Durham, SOX +128 +.247 +296 +73 +21 +2 +10 +30 +.432 + ++ +Eric Chavez, OAK +128 +.247 +287 +71 +24 +0 +11 +43 +.446 + ++ +Tony Clark, DET +128 +.300 +247 +74 +14 +2 +12 +46 +.518 + + July 3, 2001, at 12:37 PM ET + diff --git a/src/TSN/XML/SportInfo.hs b/src/TSN/XML/SportInfo.hs index 2350ea5..3e5a84f 100644 --- a/src/TSN/XML/SportInfo.hs +++ b/src/TSN/XML/SportInfo.hs @@ -127,7 +127,7 @@ dtds = "mlbstandxml.dtd", "mlbstandxml_preseason.dtd", "mlbstolenbasexml.dtd", - "mlbtotalbasesleadersxml.dtd", -- no dtd + "mlbtotalbasesleadersxml.dtd", "mlbtriplesleadersxml.dtd", -- no dtd "MLBWalkRateXML.dtd", -- no dtd "mlbwalksleadersxml.dtd", -- no dtd @@ -371,7 +371,8 @@ sport_info_test_files = "mlbsluggingpctxml.xml", "mlbstandxml.xml", "mlbstandxml_preseason.xml", - "mlbstolenbasexml.xml" + "mlbstolenbasexml.xml", + "mlbtotalbasesleadersxml.xml" ] diff --git a/test/xml/sportinfo/mlbtotalbasesleadersxml.dtd b/test/xml/sportinfo/mlbtotalbasesleadersxml.dtd new file mode 100644 index 0000000..5c3eaeb --- /dev/null +++ b/test/xml/sportinfo/mlbtotalbasesleadersxml.dtd @@ -0,0 +1,38 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/test/xml/sportinfo/mlbtotalbasesleadersxml.xml b/test/xml/sportinfo/mlbtotalbasesleadersxml.xml new file mode 100644 index 0000000..2d3be9d --- /dev/null +++ b/test/xml/sportinfo/mlbtotalbasesleadersxml.xml @@ -0,0 +1,530 @@ + + + +2121017 +AAX%AL-TOTALBASES-LEADERS +Statistics +MLB +2001 AL Total Bases Leaders ++1 +Mike Sweeney, KC +204 +.335 +316 +106 +35 +0 +21 +63 +.646 + ++2 +Manny Ramirez, BOS +198 +.331 +305 +101 +18 +2 +25 +82 +.649 + ++3 +Alex Rodriguez, TEX +190 +.315 +317 +100 +19 +1 +23 +67 +.599 + ++4 +Bret Boone, SEA +186 +.326 +316 +103 +16 +2 +21 +80 +.589 + ++5 +Juan Gonzalez, CLE +182 +.341 +296 +101 +18 +0 +21 +74 +.615 + ++6 +Jason Giambi, OAK +174 +.337 +267 +90 +25 +1 +19 +60 +.652 + ++7 +Ichiro Suzuki, SEA +168 +.349 +361 +126 +18 +6 +4 +38 +.465 + ++8 +Raul Mondesi, TOR +163 +.283 +315 +89 +20 +3 +16 +47 +.517 + ++9 +Shannon Stewart, TOR +162 +.323 +337 +109 +23 +6 +6 +35 +.481 + ++ +Cristian Guzman, MIN +162 +.306 +324 +99 +18 +12 +7 +31 +.500 + ++11 +Rafael Palmeiro, TEX +159 +.262 +298 +78 +18 +0 +21 +60 +.534 + ++ +Magglio Ordonez, SOX +159 +.304 +286 +87 +15 +0 +19 +54 +.556 + ++13 +Troy Glaus, ANA +158 +.250 +296 +74 +21 +0 +21 +52 +.534 + ++14 +Ellis Burks, CLE +157 +.295 +261 +77 +18 +1 +20 +53 +.602 + ++15 +Roberto Alomar, CLE +156 +.354 +291 +103 +17 +6 +8 +50 +.536 + ++16 +Jim Thome, CLE +151 +.276 +250 +69 +14 +1 +22 +53 +.604 + ++17 +Miguel Tejada, OAK +150 +.268 +317 +85 +17 +0 +16 +50 +.473 + ++18 +Carlos Delgado, TOR +149 +.250 +288 +72 +11 +0 +22 +54 +.517 + ++19 +Greg Vaughn, TB +148 +.247 +295 +73 +15 +0 +20 +56 +.502 + ++20 +Fred McGriff, TB +147 +.332 +271 +90 +15 +0 +14 +47 +.542 + ++21 +Doug Mientkiewicz, MIN +144 +.312 +285 +89 +20 +1 +11 +50 +.505 + ++22 +Edgar Martinez, SEA +142 +.303 +267 +81 +25 +0 +12 +64 +.532 + ++23 +Ivan Rodriguez, TEX +141 +.292 +264 +77 +14 +1 +16 +41 +.534 + ++ +Mike Cameron, SEA +141 +.270 +270 +73 +18 +4 +14 +54 +.522 + ++ +Carlos Lee, SOX +141 +.302 +268 +81 +17 +2 +13 +46 +.526 + ++ +Garret Anderson, ANA +141 +.273 +337 +92 +11 +1 +12 +53 +.418 + ++27 +John Olerud, SEA +139 +.317 +287 +91 +16 +1 +10 +55 +.484 + ++ +Paul Konerko, SOX +139 +.277 +274 +76 +15 +0 +16 +46 +.507 + ++ +Tino Martinez, NYY +139 +.260 +308 +80 +15 +1 +14 +57 +.451 + ++30 +Carlos Beltran, KC +137 +.266 +312 +83 +10 +4 +12 +42 +.439 + ++31 +Bernie Williams, NYY +136 +.324 +247 +80 +14 +0 +14 +46 +.551 + ++32 +Carl Everett, BOS +133 +.284 +282 +80 +18 +4 +9 +42 +.472 + ++33 +Terrence Long, OAK +132 +.274 +317 +87 +16 +1 +9 +43 +.416 + ++34 +Jorge Posada, NYY +131 +.310 +245 +76 +14 +1 +13 +61 +.535 + ++ +Scott Brosius, NYY +131 +.290 +279 +81 +16 +2 +10 +29 +.470 + ++36 +Jermaine Dye, KC +130 +.283 +300 +85 +12 +0 +11 +38 +.433 + ++ +Paul O`Neill, NYY +130 +.260 +300 +78 +17 +1 +11 +41 +.433 + ++38 +Ray Durham, SOX +128 +.247 +296 +73 +21 +2 +10 +30 +.432 + ++ +Eric Chavez, OAK +128 +.247 +287 +71 +24 +0 +11 +43 +.446 + ++ +Tony Clark, DET +128 +.300 +247 +74 +14 +2 +12 +46 +.518 + + July 3, 2001, at 12:37 PM ET +