From: Michael Orlitzky Date: Tue, 17 Jun 2014 14:08:36 +0000 (-0400) Subject: Add SportInfo support for MLBIntWalksXML.dtd. X-Git-Tag: 0.0.6~163 X-Git-Url: https://gitweb.michael.orlitzky.com/?a=commitdiff_plain;h=eb7f03f648c586ad91f4d893e1242ea5e0e17f1d;p=dead%2Fhtsn-import.git Add SportInfo support for MLBIntWalksXML.dtd. --- diff --git a/doc/man1/htsn-import.1 b/doc/man1/htsn-import.1 index 35e49e7..bbee9d7 100644 --- a/doc/man1/htsn-import.1 +++ b/doc/man1/htsn-import.1 @@ -192,6 +192,8 @@ mlbhitsleadersxml.dtd mlbhomerunsxml.dtd .IP \[bu] MLBHRFreqXML.dtd +.IP \[bu] +MLBIntWalksXML.dtd .RE .P The GameInfo and SportInfo types do not have their own top-level diff --git a/schema/MLBIntWalksXML.dtd b/schema/MLBIntWalksXML.dtd new file mode 100644 index 0000000..17ef089 --- /dev/null +++ b/schema/MLBIntWalksXML.dtd @@ -0,0 +1,26 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/schemagen/MLBIntWalksXML/MLBIntWalksXML.xml b/schemagen/MLBIntWalksXML/MLBIntWalksXML.xml new file mode 100644 index 0000000..a9058de --- /dev/null +++ b/schemagen/MLBIntWalksXML/MLBIntWalksXML.xml @@ -0,0 +1,290 @@ + + + +67286317 +AAX%AL-INTWALKS-LEADERS +Statistics +MLB +2002 AL Intentional Walks Leaders ++1 +Ichiro Suzuki, SEA +16 +37 +307 + ++2 +Carlos Delgado, TOR +11 +55 +264 + ++3 +Manny Ramirez, BOS +9 +29 +121 + ++4 +Jim Thome, CLE +7 +60 +251 + ++ +Rafael Palmeiro, TEX +7 +41 +251 + ++6 +Dmitri Young, DET +5 +10 +172 + ++ +Ben Grieve, TB +5 +29 +247 + ++ +Scott Spiezio, ANA +5 +34 +212 + ++9 +Garret Anderson, ANA +4 +13 +310 + ++ +Bernie Williams, NYY +4 +46 +288 + ++ +Robin Ventura, NYY +4 +41 +230 + ++ +Shane Spencer, NYY +4 +22 +179 + ++ +Jeff Conine, BAL +4 +12 +256 + ++ +Doug Mientkiewicz, MIN +4 +51 +235 + ++ +John Olerud, SEA +4 +51 +267 + ++ +Carlos Guillen, SEA +4 +27 +222 + ++ +Alex Rodriguez, TEX +4 +44 +294 + ++ +Steve Cox, TB +4 +20 +278 + ++19 +Aubrey Huff, TB +3 +9 +101 + ++ +Tim Salmon, ANA +3 +36 +260 + ++ +Brad Fullmer, ANA +3 +17 +220 + ++ +Nomar Garciaparra, BOS +3 +20 +288 + ++ +Jason Giambi, NYY +3 +52 +279 + ++ +Jorge Posada, NYY +3 +36 +252 + ++ +Mike Sweeney, KC +3 +30 +272 + ++ +Eric Chavez, OAK +3 +30 +266 + ++ +Terrence Long, OAK +3 +27 +279 + ++ +Robert Fick, DET +3 +25 +269 + ++ +Randall Simon, DET +3 +5 +254 + ++ +Michael Lamb, TEX +3 +11 +162 + ++31 +Shannon Stewart, TOR +2 +19 +244 + ++ +Omar Vizquel, CLE +2 +36 +275 + ++ +Troy Glaus, ANA +2 +39 +274 + ++ +Ben Molina, ANA +2 +7 +242 + ++ +Jason Varitek, BOS +2 +17 +221 + ++ +Tony Batista, BAL +2 +24 +276 + ++ +Corey Koskie, MIN +2 +34 +222 + ++ +Raul Ibanez, KC +2 +12 +166 + ++ +Jose Valentin, SOX +2 +17 +236 + ++ +Bret Boone, SEA +2 +28 +285 + + June 27, 2002, at 11:51 AM ET + diff --git a/src/TSN/XML/SportInfo.hs b/src/TSN/XML/SportInfo.hs index 166176b..695b0f3 100644 --- a/src/TSN/XML/SportInfo.hs +++ b/src/TSN/XML/SportInfo.hs @@ -113,7 +113,7 @@ dtds = "mlbhitsleadersxml.dtd", "mlbhomerunsxml.dtd", "MLBHRFreqXML.dtd", - "MLBIntWalksXML.dtd", -- no dtd + "MLBIntWalksXML.dtd", "MLBKORateXML.dtd", -- no dtd "mlbonbasepctxml.dtd", -- no dtd "MLBOPSXML.dtd", -- no dtd @@ -357,7 +357,8 @@ sport_info_test_files = "MLBHitByPitchXML.xml", "mlbhitsleadersxml.xml", "mlbhomerunsxml.xml", - "MLBHRFreqXML.xml" + "MLBHRFreqXML.xml", + "MLBIntWalksXML.xml" ] diff --git a/test/xml/sportinfo/MLBIntWalksXML.dtd b/test/xml/sportinfo/MLBIntWalksXML.dtd new file mode 100644 index 0000000..17ef089 --- /dev/null +++ b/test/xml/sportinfo/MLBIntWalksXML.dtd @@ -0,0 +1,26 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/test/xml/sportinfo/MLBIntWalksXML.xml b/test/xml/sportinfo/MLBIntWalksXML.xml new file mode 100644 index 0000000..a9058de --- /dev/null +++ b/test/xml/sportinfo/MLBIntWalksXML.xml @@ -0,0 +1,290 @@ + + + +67286317 +AAX%AL-INTWALKS-LEADERS +Statistics +MLB +2002 AL Intentional Walks Leaders ++1 +Ichiro Suzuki, SEA +16 +37 +307 + ++2 +Carlos Delgado, TOR +11 +55 +264 + ++3 +Manny Ramirez, BOS +9 +29 +121 + ++4 +Jim Thome, CLE +7 +60 +251 + ++ +Rafael Palmeiro, TEX +7 +41 +251 + ++6 +Dmitri Young, DET +5 +10 +172 + ++ +Ben Grieve, TB +5 +29 +247 + ++ +Scott Spiezio, ANA +5 +34 +212 + ++9 +Garret Anderson, ANA +4 +13 +310 + ++ +Bernie Williams, NYY +4 +46 +288 + ++ +Robin Ventura, NYY +4 +41 +230 + ++ +Shane Spencer, NYY +4 +22 +179 + ++ +Jeff Conine, BAL +4 +12 +256 + ++ +Doug Mientkiewicz, MIN +4 +51 +235 + ++ +John Olerud, SEA +4 +51 +267 + ++ +Carlos Guillen, SEA +4 +27 +222 + ++ +Alex Rodriguez, TEX +4 +44 +294 + ++ +Steve Cox, TB +4 +20 +278 + ++19 +Aubrey Huff, TB +3 +9 +101 + ++ +Tim Salmon, ANA +3 +36 +260 + ++ +Brad Fullmer, ANA +3 +17 +220 + ++ +Nomar Garciaparra, BOS +3 +20 +288 + ++ +Jason Giambi, NYY +3 +52 +279 + ++ +Jorge Posada, NYY +3 +36 +252 + ++ +Mike Sweeney, KC +3 +30 +272 + ++ +Eric Chavez, OAK +3 +30 +266 + ++ +Terrence Long, OAK +3 +27 +279 + ++ +Robert Fick, DET +3 +25 +269 + ++ +Randall Simon, DET +3 +5 +254 + ++ +Michael Lamb, TEX +3 +11 +162 + ++31 +Shannon Stewart, TOR +2 +19 +244 + ++ +Omar Vizquel, CLE +2 +36 +275 + ++ +Troy Glaus, ANA +2 +39 +274 + ++ +Ben Molina, ANA +2 +7 +242 + ++ +Jason Varitek, BOS +2 +17 +221 + ++ +Tony Batista, BAL +2 +24 +276 + ++ +Corey Koskie, MIN +2 +34 +222 + ++ +Raul Ibanez, KC +2 +12 +166 + ++ +Jose Valentin, SOX +2 +17 +236 + ++ +Bret Boone, SEA +2 +28 +285 + + June 27, 2002, at 11:51 AM ET +