From: Michael Orlitzky Date: Wed, 18 Jun 2014 21:29:40 +0000 (-0400) Subject: Add SportInfo support for MLBXtraBaseHitsXML.dtd. X-Git-Tag: 0.0.6~145 X-Git-Url: https://gitweb.michael.orlitzky.com/?a=commitdiff_plain;h=db898a60bc1b6b4b8e8408688f45b068ce3efb6e;p=dead%2Fhtsn-import.git Add SportInfo support for MLBXtraBaseHitsXML.dtd. --- diff --git a/doc/man1/htsn-import.1 b/doc/man1/htsn-import.1 index ac8a796..2ff0427 100644 --- a/doc/man1/htsn-import.1 +++ b/doc/man1/htsn-import.1 @@ -228,6 +228,8 @@ mlbtriplesleadersxml.dtd MLBWalkRateXML.dtd .IP \[bu] mlbwalksleadersxml.dtd +.IP \[bu] +MLBXtraBaseHitsXML.dtd .RE .P The GameInfo and SportInfo types do not have their own top-level diff --git a/schema/MLBXtraBaseHitsXML.dtd b/schema/MLBXtraBaseHitsXML.dtd new file mode 100644 index 0000000..d2807bd --- /dev/null +++ b/schema/MLBXtraBaseHitsXML.dtd @@ -0,0 +1,28 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/schemagen/MLBXtraBaseHitsXML/MLBXtraBaseHitsXML.xml b/schemagen/MLBXtraBaseHitsXML/MLBXtraBaseHitsXML.xml new file mode 100644 index 0000000..47f112e --- /dev/null +++ b/schemagen/MLBXtraBaseHitsXML/MLBXtraBaseHitsXML.xml @@ -0,0 +1,330 @@ + + + +170161574 +AAX%AL-EXTRABASEHITS-LEADERS +Statistics +MLB +2002 AL Extra Base Hits Leaders ++1 +Alfonso Soriano, NYY +47 +27 +2 +18 + ++2 +Garret Anderson, ANA +45 +28 +2 +15 + ++3 +Nomar Garciaparra, BOS +39 +26 +4 +9 + ++ +Torii Hunter, MIN +39 +19 +2 +18 + ++ +Alex Rodriguez, TEX +39 +15 +1 +23 + ++6 +Magglio Ordonez, SOX +38 +24 +1 +13 + ++7 +Jason Giambi, NYY +37 +18 +0 +19 + ++ +Tony Batista, BAL +37 +19 +1 +17 + ++9 +Tim Salmon, ANA +36 +24 +0 +12 + ++ +Eric Chavez, OAK +36 +16 +1 +19 + ++11 +Carlos Delgado, TOR +35 +18 +1 +16 + ++ +Shea Hillenbrand, BOS +35 +20 +2 +13 + ++ +Mike Sweeney, KC +35 +23 +0 +12 + ++ +John Olerud, SEA +35 +24 +0 +11 + ++15 +Jacque Jones, MIN +34 +21 +2 +11 + ++16 +Brad Fullmer, ANA +33 +20 +4 +9 + ++ +Eric Hinske, TOR +33 +19 +1 +13 + ++ +Carlos Beltran, KC +33 +17 +4 +12 + ++ +Rafael Palmeiro, TEX +33 +17 +0 +16 + ++20 +Jorge Posada, NYY +32 +20 +1 +11 + ++ +Miguel Tejada, OAK +32 +17 +0 +15 + ++22 +Jim Thome, CLE +31 +9 +1 +21 + ++ +Paul Konerko, SOX +31 +14 +0 +17 + ++ +Robert Fick, DET +31 +20 +1 +10 + ++ +Randy Winn, TB +31 +20 +5 +6 + ++26 +Omar Vizquel, CLE +30 +16 +4 +10 + ++ +Troy Glaus, ANA +30 +15 +1 +14 + ++ +Mike Cameron, SEA +30 +13 +4 +13 + ++29 +Raul Mondesi, TOR +29 +14 +1 +14 + ++ +Frank Thomas, SOX +29 +15 +1 +13 + ++31 +Joe Randa, KC +28 +20 +1 +7 + ++ +Ruben Sierra, SEA +28 +19 +0 +9 + ++33 +Johnny Damon, BOS +27 +16 +6 +5 + ++ +Jay Gibbons, BAL +27 +15 +0 +12 + ++ +A.J. Pierzynski, MIN +27 +19 +4 +4 + ++36 +Shannon Stewart, TOR +26 +21 +1 +4 + ++ +Melvin Mora, BAL +26 +17 +0 +9 + ++ +Carlos Lee, SOX +26 +14 +1 +11 + ++ +Terrence Long, OAK +26 +17 +2 +7 + ++ +Ben Grieve, TB +26 +17 +0 +9 + + June 27, 2002, at 11:51 AM ET + diff --git a/src/TSN/XML/SportInfo.hs b/src/TSN/XML/SportInfo.hs index 0ad3e52..59bca7a 100644 --- a/src/TSN/XML/SportInfo.hs +++ b/src/TSN/XML/SportInfo.hs @@ -131,7 +131,7 @@ dtds = "mlbtriplesleadersxml.dtd", "MLBWalkRateXML.dtd", "mlbwalksleadersxml.dtd", - "MLBXtraBaseHitsXML.dtd", -- no dtd + "MLBXtraBaseHitsXML.dtd", "MLB_ERA_Leaders.dtd", -- no dtd "MLB_Fielding_XML.dtd", -- no dtd "MLB_Pitching_Appearances_Leaders.dtd", -- no dtd @@ -375,7 +375,8 @@ sport_info_test_files = "mlbtotalbasesleadersxml.xml", "mlbtriplesleadersxml.xml", "MLBWalkRateXML.xml", - "mlbwalksleadersxml.xml" + "mlbwalksleadersxml.xml", + "MLBXtraBaseHitsXML.xml" ] diff --git a/test/xml/sportinfo/MLBXtraBaseHitsXML.dtd b/test/xml/sportinfo/MLBXtraBaseHitsXML.dtd new file mode 100644 index 0000000..d2807bd --- /dev/null +++ b/test/xml/sportinfo/MLBXtraBaseHitsXML.dtd @@ -0,0 +1,28 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/test/xml/sportinfo/MLBXtraBaseHitsXML.xml b/test/xml/sportinfo/MLBXtraBaseHitsXML.xml new file mode 100644 index 0000000..47f112e --- /dev/null +++ b/test/xml/sportinfo/MLBXtraBaseHitsXML.xml @@ -0,0 +1,330 @@ + + + +170161574 +AAX%AL-EXTRABASEHITS-LEADERS +Statistics +MLB +2002 AL Extra Base Hits Leaders ++1 +Alfonso Soriano, NYY +47 +27 +2 +18 + ++2 +Garret Anderson, ANA +45 +28 +2 +15 + ++3 +Nomar Garciaparra, BOS +39 +26 +4 +9 + ++ +Torii Hunter, MIN +39 +19 +2 +18 + ++ +Alex Rodriguez, TEX +39 +15 +1 +23 + ++6 +Magglio Ordonez, SOX +38 +24 +1 +13 + ++7 +Jason Giambi, NYY +37 +18 +0 +19 + ++ +Tony Batista, BAL +37 +19 +1 +17 + ++9 +Tim Salmon, ANA +36 +24 +0 +12 + ++ +Eric Chavez, OAK +36 +16 +1 +19 + ++11 +Carlos Delgado, TOR +35 +18 +1 +16 + ++ +Shea Hillenbrand, BOS +35 +20 +2 +13 + ++ +Mike Sweeney, KC +35 +23 +0 +12 + ++ +John Olerud, SEA +35 +24 +0 +11 + ++15 +Jacque Jones, MIN +34 +21 +2 +11 + ++16 +Brad Fullmer, ANA +33 +20 +4 +9 + ++ +Eric Hinske, TOR +33 +19 +1 +13 + ++ +Carlos Beltran, KC +33 +17 +4 +12 + ++ +Rafael Palmeiro, TEX +33 +17 +0 +16 + ++20 +Jorge Posada, NYY +32 +20 +1 +11 + ++ +Miguel Tejada, OAK +32 +17 +0 +15 + ++22 +Jim Thome, CLE +31 +9 +1 +21 + ++ +Paul Konerko, SOX +31 +14 +0 +17 + ++ +Robert Fick, DET +31 +20 +1 +10 + ++ +Randy Winn, TB +31 +20 +5 +6 + ++26 +Omar Vizquel, CLE +30 +16 +4 +10 + ++ +Troy Glaus, ANA +30 +15 +1 +14 + ++ +Mike Cameron, SEA +30 +13 +4 +13 + ++29 +Raul Mondesi, TOR +29 +14 +1 +14 + ++ +Frank Thomas, SOX +29 +15 +1 +13 + ++31 +Joe Randa, KC +28 +20 +1 +7 + ++ +Ruben Sierra, SEA +28 +19 +0 +9 + ++33 +Johnny Damon, BOS +27 +16 +6 +5 + ++ +Jay Gibbons, BAL +27 +15 +0 +12 + ++ +A.J. Pierzynski, MIN +27 +19 +4 +4 + ++36 +Shannon Stewart, TOR +26 +21 +1 +4 + ++ +Melvin Mora, BAL +26 +17 +0 +9 + ++ +Carlos Lee, SOX +26 +14 +1 +11 + ++ +Terrence Long, OAK +26 +17 +2 +7 + ++ +Ben Grieve, TB +26 +17 +0 +9 + + June 27, 2002, at 11:51 AM ET +