From: Michael Orlitzky Date: Wed, 18 Jun 2014 15:38:43 +0000 (-0400) Subject: Add SportInfo support for MLBWalkRateXML.dtd. X-Git-Tag: 0.0.6~147 X-Git-Url: https://gitweb.michael.orlitzky.com/?a=commitdiff_plain;h=af856f53e05bd68e7d744a9aab60d8f246607235;p=dead%2Fhtsn-import.git Add SportInfo support for MLBWalkRateXML.dtd. --- diff --git a/doc/man1/htsn-import.1 b/doc/man1/htsn-import.1 index 6c64304..c11a34a 100644 --- a/doc/man1/htsn-import.1 +++ b/doc/man1/htsn-import.1 @@ -224,6 +224,8 @@ mlbstolenbasexml.dtd mlbtotalbasesleadersxml.dtd .IP \[bu] mlbtriplesleadersxml.dtd +.IP \[bu] +MLBWalkRateXML.dtd .RE .P The GameInfo and SportInfo types do not have their own top-level diff --git a/schema/MLBWalkRateXML.dtd b/schema/MLBWalkRateXML.dtd new file mode 100644 index 0000000..fc25024 --- /dev/null +++ b/schema/MLBWalkRateXML.dtd @@ -0,0 +1,32 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/schemagen/MLBWalkRateXML/MLBWalkRateXML.xml b/schemagen/MLBWalkRateXML/MLBWalkRateXML.xml new file mode 100644 index 0000000..f21711a --- /dev/null +++ b/schemagen/MLBWalkRateXML/MLBWalkRateXML.xml @@ -0,0 +1,410 @@ + + + +3054717 +AAX%AL-WALKRATE-LEADERS +Statistics +MLB +2002 AL Walk Rate Leaders ++1 +Jim Thome, CLE +5.3 +251 +60 +5 +3 +0 + ++2 +Doug Mientkiewicz, MIN +5.8 +235 +51 +5 +3 +0 + ++ +Carlos Delgado, TOR +6.0 +264 +55 +6 +3 +0 + ++ +John Olerud, SEA +6.4 +267 +51 +1 +6 +0 + ++5 +Jason Giambi, NYY +6.5 +279 +52 +7 +1 +0 + ++ +Robin Ventura, NYY +6.6 +230 +41 +0 +1 +0 + ++ +Greg Vaughn, TB +7.2 +251 +41 +3 +2 +0 + ++ +Rafael Palmeiro, TEX +7.3 +251 +41 +2 +4 +0 + ++ +Bernie Williams, NYY +7.3 +288 +46 +2 +1 +0 + ++ +Scott Spiezio, ANA +7.4 +212 +34 +1 +4 +1 + ++11 +Matt Lawton, CLE +7.6 +266 +41 +4 +0 +1 + ++ +Eric Hinske, TOR +7.6 +244 +37 +0 +1 +0 + ++ +Mark McLemore, SEA +7.7 +203 +31 +0 +4 +2 + ++ +Corey Koskie, MIN +7.8 +222 +34 +6 +3 +0 + ++ +Alex Rodriguez, TEX +7.8 +294 +44 +5 +2 +0 + ++ +Mike Cameron, SEA +7.9 +261 +39 +5 +2 +1 + ++ +Scott Hatteberg, OAK +8.1 +236 +34 +4 +0 +0 + ++ +Jorge Posada, NYY +8.1 +252 +36 +0 +3 +0 + ++ +Kenny Lofton, SOX +8.2 +261 +37 +0 +1 +3 + ++ +Troy Glaus, ANA +8.2 +274 +39 +3 +3 +0 + ++ +Ray Durham, SOX +8.3 +253 +37 +4 +4 +8 + ++ +Tim Salmon, ANA +8.4 +260 +36 +3 +3 +0 + ++ +Frank Thomas, SOX +8.4 +267 +37 +3 +4 +0 + ++24 +Carlos Febles, KC +8.8 +209 +28 +4 +0 +4 + ++ +Omar Vizquel, CLE +9.0 +275 +36 +4 +7 +1 + ++ +Jay Gibbons, BAL +9.2 +235 +29 +0 +2 +0 + ++ +Melvin Mora, BAL +9.3 +261 +33 +9 +1 +2 + ++ +Carlos Guillen, SEA +9.3 +222 +27 +0 +2 +0 + ++ +Jose Cruz, TOR +9.5 +276 +33 +0 +2 +1 + ++30 +Ichiro Suzuki, SEA +9.5 +307 +37 +2 +4 +2 + ++ +Trot Nixon, BOS +9.7 +239 +28 +2 +1 +1 + ++ +Ben Grieve, TB +9.7 +247 +29 +4 +1 +0 + ++ +Carlos Beltran, KC +9.8 +283 +33 +2 +3 +1 + ++ +Eric Chavez, OAK +9.9 +266 +30 +1 +1 +0 + ++ +Travis Fryman, CLE +10.0 +241 +27 +2 +0 +0 + ++ +Bobby Higginson, DET +10.3 +208 +23 +1 +4 +0 + ++ +Mike Sweeney, KC +10.3 +272 +30 +2 +4 +0 + ++ +Mike Bordick, BAL +10.4 +209 +23 +1 +1 +5 + ++39 +Raul Mondesi, TOR +10.6 +285 +30 +2 +2 +0 + ++ +Derek Jeter, NYY +10.8 +319 +33 +4 +1 +1 + + June 27, 2002, at 11:52 AM ET + diff --git a/src/TSN/XML/SportInfo.hs b/src/TSN/XML/SportInfo.hs index fef70b4..67fc464 100644 --- a/src/TSN/XML/SportInfo.hs +++ b/src/TSN/XML/SportInfo.hs @@ -129,7 +129,7 @@ dtds = "mlbstolenbasexml.dtd", "mlbtotalbasesleadersxml.dtd", "mlbtriplesleadersxml.dtd", - "MLBWalkRateXML.dtd", -- no dtd + "MLBWalkRateXML.dtd", "mlbwalksleadersxml.dtd", -- no dtd "MLBXtraBaseHitsXML.dtd", -- no dtd "MLB_ERA_Leaders.dtd", -- no dtd @@ -373,7 +373,8 @@ sport_info_test_files = "mlbstandxml_preseason.xml", "mlbstolenbasexml.xml", "mlbtotalbasesleadersxml.xml", - "mlbtriplesleadersxml.xml" + "mlbtriplesleadersxml.xml", + "MLBWalkRateXML.xml" ] diff --git a/test/xml/sportinfo/MLBWalkRateXML.dtd b/test/xml/sportinfo/MLBWalkRateXML.dtd new file mode 100644 index 0000000..fc25024 --- /dev/null +++ b/test/xml/sportinfo/MLBWalkRateXML.dtd @@ -0,0 +1,32 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/test/xml/sportinfo/MLBWalkRateXML.xml b/test/xml/sportinfo/MLBWalkRateXML.xml new file mode 100644 index 0000000..f21711a --- /dev/null +++ b/test/xml/sportinfo/MLBWalkRateXML.xml @@ -0,0 +1,410 @@ + + + +3054717 +AAX%AL-WALKRATE-LEADERS +Statistics +MLB +2002 AL Walk Rate Leaders ++1 +Jim Thome, CLE +5.3 +251 +60 +5 +3 +0 + ++2 +Doug Mientkiewicz, MIN +5.8 +235 +51 +5 +3 +0 + ++ +Carlos Delgado, TOR +6.0 +264 +55 +6 +3 +0 + ++ +John Olerud, SEA +6.4 +267 +51 +1 +6 +0 + ++5 +Jason Giambi, NYY +6.5 +279 +52 +7 +1 +0 + ++ +Robin Ventura, NYY +6.6 +230 +41 +0 +1 +0 + ++ +Greg Vaughn, TB +7.2 +251 +41 +3 +2 +0 + ++ +Rafael Palmeiro, TEX +7.3 +251 +41 +2 +4 +0 + ++ +Bernie Williams, NYY +7.3 +288 +46 +2 +1 +0 + ++ +Scott Spiezio, ANA +7.4 +212 +34 +1 +4 +1 + ++11 +Matt Lawton, CLE +7.6 +266 +41 +4 +0 +1 + ++ +Eric Hinske, TOR +7.6 +244 +37 +0 +1 +0 + ++ +Mark McLemore, SEA +7.7 +203 +31 +0 +4 +2 + ++ +Corey Koskie, MIN +7.8 +222 +34 +6 +3 +0 + ++ +Alex Rodriguez, TEX +7.8 +294 +44 +5 +2 +0 + ++ +Mike Cameron, SEA +7.9 +261 +39 +5 +2 +1 + ++ +Scott Hatteberg, OAK +8.1 +236 +34 +4 +0 +0 + ++ +Jorge Posada, NYY +8.1 +252 +36 +0 +3 +0 + ++ +Kenny Lofton, SOX +8.2 +261 +37 +0 +1 +3 + ++ +Troy Glaus, ANA +8.2 +274 +39 +3 +3 +0 + ++ +Ray Durham, SOX +8.3 +253 +37 +4 +4 +8 + ++ +Tim Salmon, ANA +8.4 +260 +36 +3 +3 +0 + ++ +Frank Thomas, SOX +8.4 +267 +37 +3 +4 +0 + ++24 +Carlos Febles, KC +8.8 +209 +28 +4 +0 +4 + ++ +Omar Vizquel, CLE +9.0 +275 +36 +4 +7 +1 + ++ +Jay Gibbons, BAL +9.2 +235 +29 +0 +2 +0 + ++ +Melvin Mora, BAL +9.3 +261 +33 +9 +1 +2 + ++ +Carlos Guillen, SEA +9.3 +222 +27 +0 +2 +0 + ++ +Jose Cruz, TOR +9.5 +276 +33 +0 +2 +1 + ++30 +Ichiro Suzuki, SEA +9.5 +307 +37 +2 +4 +2 + ++ +Trot Nixon, BOS +9.7 +239 +28 +2 +1 +1 + ++ +Ben Grieve, TB +9.7 +247 +29 +4 +1 +0 + ++ +Carlos Beltran, KC +9.8 +283 +33 +2 +3 +1 + ++ +Eric Chavez, OAK +9.9 +266 +30 +1 +1 +0 + ++ +Travis Fryman, CLE +10.0 +241 +27 +2 +0 +0 + ++ +Bobby Higginson, DET +10.3 +208 +23 +1 +4 +0 + ++ +Mike Sweeney, KC +10.3 +272 +30 +2 +4 +0 + ++ +Mike Bordick, BAL +10.4 +209 +23 +1 +1 +5 + ++39 +Raul Mondesi, TOR +10.6 +285 +30 +2 +2 +0 + ++ +Derek Jeter, NYY +10.8 +319 +33 +4 +1 +1 + + June 27, 2002, at 11:52 AM ET +