From: Michael Orlitzky Date: Tue, 17 Jun 2014 14:04:56 +0000 (-0400) Subject: Add SportInfo support for MLBHRFreqXML.dtd. X-Git-Tag: 0.0.6~164 X-Git-Url: http://gitweb.michael.orlitzky.com/?a=commitdiff_plain;ds=inline;h=899b155e2e6e937ddc796e1978b9069cacd24abe;hp=c842c8e53ea54e5a1e7bacb6aa4b19bd4f883654;p=dead%2Fhtsn-import.git Add SportInfo support for MLBHRFreqXML.dtd. --- diff --git a/doc/man1/htsn-import.1 b/doc/man1/htsn-import.1 index 86dee64..35e49e7 100644 --- a/doc/man1/htsn-import.1 +++ b/doc/man1/htsn-import.1 @@ -190,6 +190,8 @@ MLBHitByPitchXML.dtd mlbhitsleadersxml.dtd .IP \[bu] mlbhomerunsxml.dtd +.IP \[bu] +MLBHRFreqXML.dtd .RE .P The GameInfo and SportInfo types do not have their own top-level diff --git a/schema/MLBHRFreqXML.dtd b/schema/MLBHRFreqXML.dtd new file mode 100644 index 0000000..59891bb --- /dev/null +++ b/schema/MLBHRFreqXML.dtd @@ -0,0 +1,30 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/schemagen/MLBHRFreqXML/MLBHRFreqXML.xml b/schemagen/MLBHRFreqXML/MLBHRFreqXML.xml new file mode 100644 index 0000000..5ebc9d2 --- /dev/null +++ b/schemagen/MLBHRFreqXML/MLBHRFreqXML.xml @@ -0,0 +1,550 @@ + + + +8762217 +AAX%AL-HRFREQ-LEADERS +Statistics +MLB +2002 AL Home Run Frequency Leaders ++1 +Jim Thome, CLE +12.0 +21 +251 +54 +15.0 + ++ +Robin Ventura, NYY +12.1 +19 +230 +53 +14.3 + ++3 +Alex Rodriguez, TEX +12.8 +23 +294 +63 +14.8 + ++4 +Eric Chavez, OAK +14.0 +19 +266 +51 +15.6 + ++5 +Jason Giambi, NYY +14.7 +19 +279 +60 +17.5 + ++6 +Rafael Palmeiro, TEX +15.7 +16 +251 +44 +18.5 + ++ +Tony Batista, BAL +16.2 +17 +276 +46 +17.9 + ++ +Carlos Delgado, TOR +16.5 +16 +264 +56 +20.1 + ++9 +Torii Hunter, MIN +16.7 +18 +300 +55 +18.0 + ++ +Paul Konerko, SOX +17.1 +17 +290 +65 +18.5 + ++11 +Alfonso Soriano, NYY +18.1 +18 +326 +46 +18.8 + ++12 +Eric Hinske, TOR +18.8 +13 +244 +42 +21.7 + ++13 +Troy Glaus, ANA +19.6 +14 +274 +53 +22.6 + ++ +Jay Gibbons, BAL +19.6 +12 +235 +34 +22.2 + ++ +Mike Cameron, SEA +20.1 +13 +261 +43 +23.3 + ++ +Raul Mondesi, TOR +20.4 +14 +285 +43 +22.6 + ++ +Ellis Burks, CLE +20.5 +12 +246 +38 +22.8 + ++18 +Frank Thomas, SOX +20.5 +13 +267 +50 +23.7 + ++ +Nick Johnson, NYY +20.6 +11 +227 +39 +22.6 + ++ +Garret Anderson, ANA +20.7 +15 +310 +58 +21.9 + ++ +Miguel Tejada, OAK +21.1 +15 +316 +56 +22.1 + ++ +Scott Hatteberg, OAK +21.5 +11 +236 +31 +24.5 + ++23 +Carlos Lee, SOX +21.5 +11 +237 +36 +24.2 + ++ +Magglio Ordonez, SOX +21.6 +13 +281 +55 +23.8 + ++ +Tim Salmon, ANA +21.7 +12 +260 +46 +24.9 + ++26 +Mike Sweeney, KC +22.7 +12 +272 +37 +25.5 + ++ +Shea Hillenbrand, BOS +22.8 +13 +297 +49 +23.8 + ++ +Jorge Posada, NYY +22.9 +11 +252 +45 +26.5 + ++29 +Carlos Beltran, KC +23.6 +12 +283 +44 +26.7 + ++ +Jose Valentin, SOX +23.6 +10 +236 +36 +25.6 + ++ +John Olerud, SEA +24.3 +11 +267 +43 +29.5 + ++ +Brad Fullmer, ANA +24.4 +9 +220 +29 +26.4 + ++33 +Marty Cordova, BAL +24.9 +9 +224 +36 +27.4 + ++ +Randall Simon, DET +25.4 +10 +254 +44 +26.1 + ++35 +Jeff Conine, BAL +25.6 +10 +256 +45 +27.5 + ++ +Rondell White, NYY +25.9 +9 +233 +33 +28.1 + ++37 +Robert Fick, DET +26.9 +10 +269 +34 +29.6 + ++ +Ben Grieve, TB +27.4 +9 +247 +35 +30.8 + ++39 +Omar Vizquel, CLE +27.5 +10 +275 +45 +31.9 + ++ +Jose Cruz, TOR +27.6 +10 +276 +37 +31.2 + ++ +Felipe Lopez, TOR +27.9 +8 +223 +28 +31.0 + ++ +Jacque Jones, MIN +28.0 +11 +308 +52 +30.5 + ++43 +Bernie Williams, NYY +28.8 +10 +288 +39 +33.5 + ++ +Vernon Wells, TOR +28.9 +9 +260 +36 +31.1 + ++ +Melvin Mora, BAL +29.0 +9 +261 +30 +33.0 + ++ +Ruben Sierra, SEA +29.1 +9 +262 +48 +31.4 + ++47 +Steve Cox, TB +30.9 +9 +278 +35 +33.2 + ++ +Greg Vaughn, TB +31.4 +8 +251 +29 +36.8 + ++49 +Bret Boone, SEA +31.7 +9 +285 +45 +35.2 + ++ +Corey Koskie, MIN +31.7 +7 +222 +35 +37.0 + ++ +Carlos Guillen, SEA +31.7 +7 +222 +35 +35.9 + ++ +Derek Jeter, NYY +31.9 +10 +319 +38 +35.4 + ++ +Nomar Garciaparra, BOS +32.0 +9 +288 +59 +34.9 + ++54 +Matt Lawton, CLE +33.3 +8 +266 +29 +38.5 + ++ +Joe Randa, KC +33.4 +7 +234 +47 +38.3 + ++56 +Mark McLemore, SEA +33.8 +6 +203 +31 +40.0 + ++ +Trot Nixon, BOS +34.1 +7 +239 +27 +38.4 + ++ +Travis Fryman, CLE +34.4 +7 +241 +36 +38.3 + ++59 +Michael Young, TEX +34.9 +7 +244 +36 +38.6 + ++60 +Jason Varitek, BOS +36.8 +6 +221 +28 +39.7 + + June 27, 2002, at 11:52 AM ET + diff --git a/src/TSN/XML/SportInfo.hs b/src/TSN/XML/SportInfo.hs index 6631613..166176b 100644 --- a/src/TSN/XML/SportInfo.hs +++ b/src/TSN/XML/SportInfo.hs @@ -112,7 +112,7 @@ dtds = "MLBHitByPitchXML.dtd", "mlbhitsleadersxml.dtd", "mlbhomerunsxml.dtd", - "MLBHRFreqXML.dtd", -- no dtd + "MLBHRFreqXML.dtd", "MLBIntWalksXML.dtd", -- no dtd "MLBKORateXML.dtd", -- no dtd "mlbonbasepctxml.dtd", -- no dtd @@ -356,7 +356,8 @@ sport_info_test_files = "MLBGIDPXML.xml", "MLBHitByPitchXML.xml", "mlbhitsleadersxml.xml", - "mlbhomerunsxml.xml" + "mlbhomerunsxml.xml", + "MLBHRFreqXML.xml" ] diff --git a/test/xml/sportinfo/MLBHRFreqXML.dtd b/test/xml/sportinfo/MLBHRFreqXML.dtd new file mode 100644 index 0000000..59891bb --- /dev/null +++ b/test/xml/sportinfo/MLBHRFreqXML.dtd @@ -0,0 +1,30 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/test/xml/sportinfo/MLBHRFreqXML.xml b/test/xml/sportinfo/MLBHRFreqXML.xml new file mode 100644 index 0000000..5ebc9d2 --- /dev/null +++ b/test/xml/sportinfo/MLBHRFreqXML.xml @@ -0,0 +1,550 @@ + + + +8762217 +AAX%AL-HRFREQ-LEADERS +Statistics +MLB +2002 AL Home Run Frequency Leaders ++1 +Jim Thome, CLE +12.0 +21 +251 +54 +15.0 + ++ +Robin Ventura, NYY +12.1 +19 +230 +53 +14.3 + ++3 +Alex Rodriguez, TEX +12.8 +23 +294 +63 +14.8 + ++4 +Eric Chavez, OAK +14.0 +19 +266 +51 +15.6 + ++5 +Jason Giambi, NYY +14.7 +19 +279 +60 +17.5 + ++6 +Rafael Palmeiro, TEX +15.7 +16 +251 +44 +18.5 + ++ +Tony Batista, BAL +16.2 +17 +276 +46 +17.9 + ++ +Carlos Delgado, TOR +16.5 +16 +264 +56 +20.1 + ++9 +Torii Hunter, MIN +16.7 +18 +300 +55 +18.0 + ++ +Paul Konerko, SOX +17.1 +17 +290 +65 +18.5 + ++11 +Alfonso Soriano, NYY +18.1 +18 +326 +46 +18.8 + ++12 +Eric Hinske, TOR +18.8 +13 +244 +42 +21.7 + ++13 +Troy Glaus, ANA +19.6 +14 +274 +53 +22.6 + ++ +Jay Gibbons, BAL +19.6 +12 +235 +34 +22.2 + ++ +Mike Cameron, SEA +20.1 +13 +261 +43 +23.3 + ++ +Raul Mondesi, TOR +20.4 +14 +285 +43 +22.6 + ++ +Ellis Burks, CLE +20.5 +12 +246 +38 +22.8 + ++18 +Frank Thomas, SOX +20.5 +13 +267 +50 +23.7 + ++ +Nick Johnson, NYY +20.6 +11 +227 +39 +22.6 + ++ +Garret Anderson, ANA +20.7 +15 +310 +58 +21.9 + ++ +Miguel Tejada, OAK +21.1 +15 +316 +56 +22.1 + ++ +Scott Hatteberg, OAK +21.5 +11 +236 +31 +24.5 + ++23 +Carlos Lee, SOX +21.5 +11 +237 +36 +24.2 + ++ +Magglio Ordonez, SOX +21.6 +13 +281 +55 +23.8 + ++ +Tim Salmon, ANA +21.7 +12 +260 +46 +24.9 + ++26 +Mike Sweeney, KC +22.7 +12 +272 +37 +25.5 + ++ +Shea Hillenbrand, BOS +22.8 +13 +297 +49 +23.8 + ++ +Jorge Posada, NYY +22.9 +11 +252 +45 +26.5 + ++29 +Carlos Beltran, KC +23.6 +12 +283 +44 +26.7 + ++ +Jose Valentin, SOX +23.6 +10 +236 +36 +25.6 + ++ +John Olerud, SEA +24.3 +11 +267 +43 +29.5 + ++ +Brad Fullmer, ANA +24.4 +9 +220 +29 +26.4 + ++33 +Marty Cordova, BAL +24.9 +9 +224 +36 +27.4 + ++ +Randall Simon, DET +25.4 +10 +254 +44 +26.1 + ++35 +Jeff Conine, BAL +25.6 +10 +256 +45 +27.5 + ++ +Rondell White, NYY +25.9 +9 +233 +33 +28.1 + ++37 +Robert Fick, DET +26.9 +10 +269 +34 +29.6 + ++ +Ben Grieve, TB +27.4 +9 +247 +35 +30.8 + ++39 +Omar Vizquel, CLE +27.5 +10 +275 +45 +31.9 + ++ +Jose Cruz, TOR +27.6 +10 +276 +37 +31.2 + ++ +Felipe Lopez, TOR +27.9 +8 +223 +28 +31.0 + ++ +Jacque Jones, MIN +28.0 +11 +308 +52 +30.5 + ++43 +Bernie Williams, NYY +28.8 +10 +288 +39 +33.5 + ++ +Vernon Wells, TOR +28.9 +9 +260 +36 +31.1 + ++ +Melvin Mora, BAL +29.0 +9 +261 +30 +33.0 + ++ +Ruben Sierra, SEA +29.1 +9 +262 +48 +31.4 + ++47 +Steve Cox, TB +30.9 +9 +278 +35 +33.2 + ++ +Greg Vaughn, TB +31.4 +8 +251 +29 +36.8 + ++49 +Bret Boone, SEA +31.7 +9 +285 +45 +35.2 + ++ +Corey Koskie, MIN +31.7 +7 +222 +35 +37.0 + ++ +Carlos Guillen, SEA +31.7 +7 +222 +35 +35.9 + ++ +Derek Jeter, NYY +31.9 +10 +319 +38 +35.4 + ++ +Nomar Garciaparra, BOS +32.0 +9 +288 +59 +34.9 + ++54 +Matt Lawton, CLE +33.3 +8 +266 +29 +38.5 + ++ +Joe Randa, KC +33.4 +7 +234 +47 +38.3 + ++56 +Mark McLemore, SEA +33.8 +6 +203 +31 +40.0 + ++ +Trot Nixon, BOS +34.1 +7 +239 +27 +38.4 + ++ +Travis Fryman, CLE +34.4 +7 +241 +36 +38.3 + ++59 +Michael Young, TEX +34.9 +7 +244 +36 +38.6 + ++60 +Jason Varitek, BOS +36.8 +6 +221 +28 +39.7 + + June 27, 2002, at 11:52 AM ET +