From: Michael Orlitzky Date: Sun, 22 Jun 2014 14:31:04 +0000 (-0400) Subject: Add SportInfo support for MLB_ERA_Leaders.dtd. X-Git-Tag: 0.0.6~143 X-Git-Url: https://gitweb.michael.orlitzky.com/?a=commitdiff_plain;h=ea92a52cc5f044d63a6e9ed348bf85ec9917f969;p=dead%2Fhtsn-import.git Add SportInfo support for MLB_ERA_Leaders.dtd. --- diff --git a/doc/man1/htsn-import.1 b/doc/man1/htsn-import.1 index e94a427..ebf5f40 100644 --- a/doc/man1/htsn-import.1 +++ b/doc/man1/htsn-import.1 @@ -232,6 +232,8 @@ mlbwalksleadersxml.dtd MLBXtraBaseHitsXML.dtd .IP \[bu] MLB_Pitching_Appearances_Leaders.dtd +.IP \[bu] +MLB_ERA_Leaders.dtd .RE .P The GameInfo and SportInfo types do not have their own top-level diff --git a/schema/MLB_ERA_Leaders.dtd b/schema/MLB_ERA_Leaders.dtd new file mode 100644 index 0000000..6b35def --- /dev/null +++ b/schema/MLB_ERA_Leaders.dtd @@ -0,0 +1,36 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/schemagen/MLB_ERA_Leaders/MLB_ERA_Leaders.xml b/schemagen/MLB_ERA_Leaders/MLB_ERA_Leaders.xml new file mode 100644 index 0000000..08aedf0 --- /dev/null +++ b/schemagen/MLB_ERA_Leaders/MLB_ERA_Leaders.xml @@ -0,0 +1,452 @@ + + + +1000017 +AAX%AL-ERA-LEADERS +Statistics +MLB +2002 AL ERA Leaders + ++1 +Derek Lowe, BOS +2.16 +11 +3 +0.786 +104.1 +25 +25 + ++2 +Bartolo Colon, CLE +2.55 +10 +4 +0.714 +116.1 +33 +37 + ++3 +Rodrigo Lopez, BAL +2.70 +6 +3 +0.667 +86.2 +26 +28 + ++4 +Mark Buehrle, SOX +2.86 +10 +5 +0.667 +110.0 +35 +42 + ++5 +Pedro Martinez, BOS +2.92 +8 +2 +0.800 +95.2 +31 +38 + ++6 +Freddy Garcia, SEA +3.02 +10 +4 +0.714 +110.1 +37 +38 + ++7 +Joel Pineiro, SEA +3.04 +7 +3 +0.700 +83.0 +28 +31 + ++8 +Barry Zito, OAK +3.07 +10 +2 +0.833 +102.2 +35 +36 + ++9 +Roy Halladay, TOR +3.19 +9 +3 +0.750 +113.0 +40 +50 + ++10 +Kenny Rogers, TEX +3.24 +8 +4 +0.667 +102.2 +37 +41 + ++11 +Jeff Weaver, DET +3.32 +5 +8 +0.385 +114.0 +42 +49 + ++12 +Ramon Ortiz, ANA +3.34 +8 +5 +0.615 +102.1 +38 +39 + ++13 +Jamie Moyer, SEA +3.47 +7 +3 +0.700 +106.1 +41 +43 + ++14 +Jarrod Washburn, ANA +3.59 +7 +2 +0.778 +92.2 +37 +39 + ++15 +David Wells, NYY +3.61 +7 +5 +0.583 +99.2 +40 +44 + ++16 +Mark Redman, DET +3.66 +3 +7 +0.300 +105.2 +43 +52 + ++17 +Tim Hudson, OAK +3.73 +5 +6 +0.455 +108.2 +45 +46 + ++18 +Roger Clemens, NYY +3.76 +8 +3 +0.727 +103.0 +43 +47 + ++19 +Chuck Finley, CLE +3.84 +4 +9 +0.308 +89.0 +38 +41 + ++20 +Ismael Valdes, TEX +3.86 +4 +6 +0.400 +86.1 +37 +38 + ++21 +Paul Wilson, TB +4.06 +2 +6 +0.250 +95.1 +43 +49 + ++22 +Sidney Ponson, BAL +4.07 +3 +4 +0.429 +95.0 +43 +45 + ++23 +Danys Baez, CLE +4.22 +5 +5 +0.500 +81.0 +38 +39 + ++24 +Paul Byrd, KC +4.25 +9 +5 +0.643 +97.1 +46 +51 + ++25 +Joe Kennedy, TB +4.26 +5 +6 +0.455 +101.1 +48 +54 + ++26 +Kevin Appier, ANA +4.26 +6 +6 +0.500 +82.1 +39 +45 + ++27 +Jon Garland, SOX +4.34 +6 +5 +0.545 +85.0 +41 +46 + ++28 +Rick Reed, MIN +4.48 +6 +3 +0.667 +82.1 +41 +49 + ++29 +Mike Mussina, NYY +4.51 +10 +3 +0.769 +103.2 +52 +53 + ++30 +Frank Castillo, BOS +4.55 +5 +7 +0.417 +83.0 +42 +44 + ++31 +Jeff Suppan, KC +4.66 +5 +6 +0.455 +100.1 +52 +55 + ++32 +Scott Erickson, BAL +4.76 +3 +6 +0.333 +96.1 +51 +57 + ++33 +Scott Schoeneweis, ANA +4.83 +6 +5 +0.545 +85.2 +46 +49 + ++34 +James Baldwin, SEA +4.93 +5 +6 +0.455 +84.0 +46 +51 + ++35 +C.C. Sabathia, CLE +5.00 +5 +6 +0.455 +90.0 +50 +53 + ++36 +Tanyon Sturtze, TB +5.09 +0 +8 +0.000 +97.1 +55 +61 + ++37 +Todd Ritchie, SOX +5.11 +4 +9 +0.308 +93.1 +53 +66 + ++38 +Eric Milton, MIN +5.27 +8 +5 +0.615 +94.0 +55 +59 + ++39 +Aaron Sele, ANA +5.29 +6 +4 +0.600 +85.0 +50 +54 + ++40 +Kyle Lohse, MIN +5.40 +6 +5 +0.545 +81.2 +49 +53 + + + June 24, 2002, at 04:51 PM ET + diff --git a/src/TSN/XML/SportInfo.hs b/src/TSN/XML/SportInfo.hs index 253136b..115fe10 100644 --- a/src/TSN/XML/SportInfo.hs +++ b/src/TSN/XML/SportInfo.hs @@ -132,7 +132,7 @@ dtds = "MLBWalkRateXML.dtd", "mlbwalksleadersxml.dtd", "MLBXtraBaseHitsXML.dtd", - "MLB_ERA_Leaders.dtd", -- no dtd + "MLB_ERA_Leaders.dtd", "MLB_Fielding_XML.dtd", -- no dtd "MLB_Pitching_Appearances_Leaders.dtd", "MLB_Pitching_Balks_Leaders.dtd", -- no dtd @@ -377,7 +377,8 @@ sport_info_test_files = "MLBWalkRateXML.xml", "mlbwalksleadersxml.xml", "MLBXtraBaseHitsXML.xml", - "MLB_Pitching_Appearances_Leaders.xml" + "MLB_Pitching_Appearances_Leaders.xml", + "MLB_ERA_Leaders.xml" ] diff --git a/test/xml/sportinfo/MLB_ERA_Leaders.dtd b/test/xml/sportinfo/MLB_ERA_Leaders.dtd new file mode 100644 index 0000000..6b35def --- /dev/null +++ b/test/xml/sportinfo/MLB_ERA_Leaders.dtd @@ -0,0 +1,36 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/test/xml/sportinfo/MLB_ERA_Leaders.xml b/test/xml/sportinfo/MLB_ERA_Leaders.xml new file mode 100644 index 0000000..08aedf0 --- /dev/null +++ b/test/xml/sportinfo/MLB_ERA_Leaders.xml @@ -0,0 +1,452 @@ + + + +1000017 +AAX%AL-ERA-LEADERS +Statistics +MLB +2002 AL ERA Leaders + ++1 +Derek Lowe, BOS +2.16 +11 +3 +0.786 +104.1 +25 +25 + ++2 +Bartolo Colon, CLE +2.55 +10 +4 +0.714 +116.1 +33 +37 + ++3 +Rodrigo Lopez, BAL +2.70 +6 +3 +0.667 +86.2 +26 +28 + ++4 +Mark Buehrle, SOX +2.86 +10 +5 +0.667 +110.0 +35 +42 + ++5 +Pedro Martinez, BOS +2.92 +8 +2 +0.800 +95.2 +31 +38 + ++6 +Freddy Garcia, SEA +3.02 +10 +4 +0.714 +110.1 +37 +38 + ++7 +Joel Pineiro, SEA +3.04 +7 +3 +0.700 +83.0 +28 +31 + ++8 +Barry Zito, OAK +3.07 +10 +2 +0.833 +102.2 +35 +36 + ++9 +Roy Halladay, TOR +3.19 +9 +3 +0.750 +113.0 +40 +50 + ++10 +Kenny Rogers, TEX +3.24 +8 +4 +0.667 +102.2 +37 +41 + ++11 +Jeff Weaver, DET +3.32 +5 +8 +0.385 +114.0 +42 +49 + ++12 +Ramon Ortiz, ANA +3.34 +8 +5 +0.615 +102.1 +38 +39 + ++13 +Jamie Moyer, SEA +3.47 +7 +3 +0.700 +106.1 +41 +43 + ++14 +Jarrod Washburn, ANA +3.59 +7 +2 +0.778 +92.2 +37 +39 + ++15 +David Wells, NYY +3.61 +7 +5 +0.583 +99.2 +40 +44 + ++16 +Mark Redman, DET +3.66 +3 +7 +0.300 +105.2 +43 +52 + ++17 +Tim Hudson, OAK +3.73 +5 +6 +0.455 +108.2 +45 +46 + ++18 +Roger Clemens, NYY +3.76 +8 +3 +0.727 +103.0 +43 +47 + ++19 +Chuck Finley, CLE +3.84 +4 +9 +0.308 +89.0 +38 +41 + ++20 +Ismael Valdes, TEX +3.86 +4 +6 +0.400 +86.1 +37 +38 + ++21 +Paul Wilson, TB +4.06 +2 +6 +0.250 +95.1 +43 +49 + ++22 +Sidney Ponson, BAL +4.07 +3 +4 +0.429 +95.0 +43 +45 + ++23 +Danys Baez, CLE +4.22 +5 +5 +0.500 +81.0 +38 +39 + ++24 +Paul Byrd, KC +4.25 +9 +5 +0.643 +97.1 +46 +51 + ++25 +Joe Kennedy, TB +4.26 +5 +6 +0.455 +101.1 +48 +54 + ++26 +Kevin Appier, ANA +4.26 +6 +6 +0.500 +82.1 +39 +45 + ++27 +Jon Garland, SOX +4.34 +6 +5 +0.545 +85.0 +41 +46 + ++28 +Rick Reed, MIN +4.48 +6 +3 +0.667 +82.1 +41 +49 + ++29 +Mike Mussina, NYY +4.51 +10 +3 +0.769 +103.2 +52 +53 + ++30 +Frank Castillo, BOS +4.55 +5 +7 +0.417 +83.0 +42 +44 + ++31 +Jeff Suppan, KC +4.66 +5 +6 +0.455 +100.1 +52 +55 + ++32 +Scott Erickson, BAL +4.76 +3 +6 +0.333 +96.1 +51 +57 + ++33 +Scott Schoeneweis, ANA +4.83 +6 +5 +0.545 +85.2 +46 +49 + ++34 +James Baldwin, SEA +4.93 +5 +6 +0.455 +84.0 +46 +51 + ++35 +C.C. Sabathia, CLE +5.00 +5 +6 +0.455 +90.0 +50 +53 + ++36 +Tanyon Sturtze, TB +5.09 +0 +8 +0.000 +97.1 +55 +61 + ++37 +Todd Ritchie, SOX +5.11 +4 +9 +0.308 +93.1 +53 +66 + ++38 +Eric Milton, MIN +5.27 +8 +5 +0.615 +94.0 +55 +59 + ++39 +Aaron Sele, ANA +5.29 +6 +4 +0.600 +85.0 +50 +54 + ++40 +Kyle Lohse, MIN +5.40 +6 +5 +0.545 +81.2 +49 +53 + + + June 24, 2002, at 04:51 PM ET +