From: Michael Orlitzky Date: Tue, 17 Jun 2014 12:39:47 +0000 (-0400) Subject: Add SportInfo support for mlbdoublesleadersxml.dtd. X-Git-Tag: 0.0.6~172 X-Git-Url: https://gitweb.michael.orlitzky.com/?a=commitdiff_plain;h=d8ed0c6eba75a968af1bba5635869f95dec1d211;p=dead%2Fhtsn-import.git Add SportInfo support for mlbdoublesleadersxml.dtd. --- diff --git a/doc/man1/htsn-import.1 b/doc/man1/htsn-import.1 index 774e082..2d4abd4 100644 --- a/doc/man1/htsn-import.1 +++ b/doc/man1/htsn-import.1 @@ -178,6 +178,8 @@ Minor_Baseball_Standings_XML.dtd Minor_Baseball_Transactions_XML.dtd .IP \[bu] mlbbattingavgxml.dtd +.IP \[bu] +mlbdoublesleadersxml.dtd .RE .P The GameInfo and SportInfo types do not have their own top-level diff --git a/schema/mlbdoublesleadersxml.dtd b/schema/mlbdoublesleadersxml.dtd new file mode 100644 index 0000000..12319be --- /dev/null +++ b/schema/mlbdoublesleadersxml.dtd @@ -0,0 +1,28 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/schemagen/mlbdoublesleadersxml/mlbdoublesleadersxml.xml b/schemagen/mlbdoublesleadersxml/mlbdoublesleadersxml.xml new file mode 100644 index 0000000..aa83424 --- /dev/null +++ b/schemagen/mlbdoublesleadersxml/mlbdoublesleadersxml.xml @@ -0,0 +1,330 @@ + + + +2122217 +AAX%AL-DOUBLES-LEADERS +Statistics +MLB +2001 AL Doubles Leaders ++1 +Mike Sweeney, KC +35 +.335 +316 +106 + ++2 +Edgar Martinez, SEA +25 +.303 +267 +81 + ++ +Jason Giambi, OAK +25 +.337 +267 +90 + ++4 +Eric Chavez, OAK +24 +.247 +287 +71 + ++5 +Shannon Stewart, TOR +23 +.323 +337 +109 + ++ +Rusty Greer, TEX +23 +.273 +245 +67 + ++7 +Ray Durham, SOX +21 +.247 +296 +73 + ++ +Troy Glaus, ANA +21 +.250 +296 +74 + ++ +Alfonso Soriano, NYY +21 +.272 +290 +79 + ++10 +Brad Fullmer, TOR +20 +.265 +294 +78 + ++ +Raul Mondesi, TOR +20 +.283 +315 +89 + ++ +Doug Mientkiewicz, MIN +20 +.312 +285 +89 + ++ +Melvin Mora, BAL +20 +.292 +240 +70 + ++ +Joe Randa, KC +20 +.256 +305 +78 + ++15 +Einar Diaz, CLE +19 +.320 +206 +66 + ++ +Alex Rodriguez, TEX +19 +.315 +317 +100 + ++ +Darin Erstad, ANA +19 +.283 +322 +91 + ++18 +Ellis Burks, CLE +18 +.295 +261 +77 + ++ +Juan Gonzalez, CLE +18 +.341 +296 +101 + ++ +Mike Cameron, SEA +18 +.270 +270 +73 + ++ +Rafael Palmeiro, TEX +18 +.262 +298 +78 + ++ +Corey Koskie, MIN +18 +.262 +275 +72 + ++ +Matt Lawton, MIN +18 +.299 +291 +87 + ++ +Cristian Guzman, MIN +18 +.306 +324 +99 + ++ +Ichiro Suzuki, SEA +18 +.349 +361 +126 + ++ +Carl Everett, BOS +18 +.284 +282 +80 + ++ +Manny Ramirez, BOS +18 +.331 +305 +101 + ++28 +Dante Bichette, BOS +17 +.350 +180 +63 + ++ +Roberto Alomar, CLE +17 +.354 +291 +103 + ++ +Carlos Lee, SOX +17 +.302 +268 +81 + ++ +Miguel Tejada, OAK +17 +.268 +317 +85 + ++ +Gerald Williams, NYY +17 +.207 +232 +48 + ++ +Deivi Cruz, DET +17 +.248 +210 +52 + ++ +Damion Easley, DET +17 +.285 +274 +78 + ++ +Paul O`Neill, NYY +17 +.260 +300 +78 + ++36 +Jose Offerman, BOS +16 +.270 +289 +78 + ++ +Jose Valentin, SOX +16 +.286 +227 +65 + ++ +John Olerud, SEA +16 +.317 +287 +91 + ++ +A.J. Pierzynski, MIN +16 +.299 +194 +58 + ++ +Bret Boone, SEA +16 +.326 +316 +103 + + July 3, 2001, at 01:01 PM ET + diff --git a/src/TSN/XML/SportInfo.hs b/src/TSN/XML/SportInfo.hs index 366dcd4..0ab896a 100644 --- a/src/TSN/XML/SportInfo.hs +++ b/src/TSN/XML/SportInfo.hs @@ -106,7 +106,7 @@ dtds = "Minor_Baseball_Standings_XML.dtd", "Minor_Baseball_Transactions_XML.dtd", "mlbbattingavgxml.dtd", - "mlbdoublesleadersxml.dtd", -- no dtd + "mlbdoublesleadersxml.dtd", "MLBGamesPlayedXML.dtd", -- no dtd "MLBGIDPXML.dtd", -- no dtd "MLBHitByPitchXML.dtd", -- no dtd @@ -350,7 +350,8 @@ sport_info_test_files = "Minor_Baseball_League_Leaders_XML.xml", "Minor_Baseball_Standings_XML.xml", "Minor_Baseball_Transactions_XML.xml", - "mlbbattingavgxml.xml" + "mlbbattingavgxml.xml", + "mlbdoublesleadersxml.xml" ] diff --git a/test/xml/sportinfo/mlbdoublesleadersxml.dtd b/test/xml/sportinfo/mlbdoublesleadersxml.dtd new file mode 100644 index 0000000..12319be --- /dev/null +++ b/test/xml/sportinfo/mlbdoublesleadersxml.dtd @@ -0,0 +1,28 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/test/xml/sportinfo/mlbdoublesleadersxml.xml b/test/xml/sportinfo/mlbdoublesleadersxml.xml new file mode 100644 index 0000000..aa83424 --- /dev/null +++ b/test/xml/sportinfo/mlbdoublesleadersxml.xml @@ -0,0 +1,330 @@ + + + +2122217 +AAX%AL-DOUBLES-LEADERS +Statistics +MLB +2001 AL Doubles Leaders ++1 +Mike Sweeney, KC +35 +.335 +316 +106 + ++2 +Edgar Martinez, SEA +25 +.303 +267 +81 + ++ +Jason Giambi, OAK +25 +.337 +267 +90 + ++4 +Eric Chavez, OAK +24 +.247 +287 +71 + ++5 +Shannon Stewart, TOR +23 +.323 +337 +109 + ++ +Rusty Greer, TEX +23 +.273 +245 +67 + ++7 +Ray Durham, SOX +21 +.247 +296 +73 + ++ +Troy Glaus, ANA +21 +.250 +296 +74 + ++ +Alfonso Soriano, NYY +21 +.272 +290 +79 + ++10 +Brad Fullmer, TOR +20 +.265 +294 +78 + ++ +Raul Mondesi, TOR +20 +.283 +315 +89 + ++ +Doug Mientkiewicz, MIN +20 +.312 +285 +89 + ++ +Melvin Mora, BAL +20 +.292 +240 +70 + ++ +Joe Randa, KC +20 +.256 +305 +78 + ++15 +Einar Diaz, CLE +19 +.320 +206 +66 + ++ +Alex Rodriguez, TEX +19 +.315 +317 +100 + ++ +Darin Erstad, ANA +19 +.283 +322 +91 + ++18 +Ellis Burks, CLE +18 +.295 +261 +77 + ++ +Juan Gonzalez, CLE +18 +.341 +296 +101 + ++ +Mike Cameron, SEA +18 +.270 +270 +73 + ++ +Rafael Palmeiro, TEX +18 +.262 +298 +78 + ++ +Corey Koskie, MIN +18 +.262 +275 +72 + ++ +Matt Lawton, MIN +18 +.299 +291 +87 + ++ +Cristian Guzman, MIN +18 +.306 +324 +99 + ++ +Ichiro Suzuki, SEA +18 +.349 +361 +126 + ++ +Carl Everett, BOS +18 +.284 +282 +80 + ++ +Manny Ramirez, BOS +18 +.331 +305 +101 + ++28 +Dante Bichette, BOS +17 +.350 +180 +63 + ++ +Roberto Alomar, CLE +17 +.354 +291 +103 + ++ +Carlos Lee, SOX +17 +.302 +268 +81 + ++ +Miguel Tejada, OAK +17 +.268 +317 +85 + ++ +Gerald Williams, NYY +17 +.207 +232 +48 + ++ +Deivi Cruz, DET +17 +.248 +210 +52 + ++ +Damion Easley, DET +17 +.285 +274 +78 + ++ +Paul O`Neill, NYY +17 +.260 +300 +78 + ++36 +Jose Offerman, BOS +16 +.270 +289 +78 + ++ +Jose Valentin, SOX +16 +.286 +227 +65 + ++ +John Olerud, SEA +16 +.317 +287 +91 + ++ +A.J. Pierzynski, MIN +16 +.299 +194 +58 + ++ +Bret Boone, SEA +16 +.326 +316 +103 + + July 3, 2001, at 01:01 PM ET +