From: Michael Orlitzky Date: Tue, 17 Jun 2014 12:34:41 +0000 (-0400) Subject: Add SportInfo support for mlbbattingavgxml.dtd. X-Git-Tag: 0.0.6~173 X-Git-Url: https://gitweb.michael.orlitzky.com/?a=commitdiff_plain;h=847b4a53dcb778cbcec4592c81cab59fb6d438a3;p=dead%2Fhtsn-import.git Add SportInfo support for mlbbattingavgxml.dtd. --- diff --git a/doc/man1/htsn-import.1 b/doc/man1/htsn-import.1 index a9a2f3c..774e082 100644 --- a/doc/man1/htsn-import.1 +++ b/doc/man1/htsn-import.1 @@ -176,6 +176,8 @@ Minor_Baseball_League_Leaders_XML.dtd Minor_Baseball_Standings_XML.dtd .IP \[bu] Minor_Baseball_Transactions_XML.dtd +.IP \[bu] +mlbbattingavgxml.dtd .RE .P The GameInfo and SportInfo types do not have their own top-level diff --git a/schema/mlbbattingavgxml.dtd b/schema/mlbbattingavgxml.dtd new file mode 100644 index 0000000..d9dc9ba --- /dev/null +++ b/schema/mlbbattingavgxml.dtd @@ -0,0 +1,30 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/schemagen/mlbbattingavgxml/mlbbattingavgxml.xml b/schemagen/mlbbattingavgxml/mlbbattingavgxml.xml new file mode 100644 index 0000000..44c73dd --- /dev/null +++ b/schemagen/mlbbattingavgxml/mlbbattingavgxml.xml @@ -0,0 +1,370 @@ + + + +171717 +AAX%AL-BATTINGAVG-LEADERS +Statistics +MLB +2001 AL Batting Average Leaders ++1 +Roberto Alomar, CLE +79 +291 +54 +103 +.354 + ++2 +Ichiro Suzuki, SEA +79 +361 +71 +126 +.349 + ++3 +Juan Gonzalez, CLE +75 +296 +57 +101 +.341 + ++4 +Jason Giambi, OAK +79 +267 +46 +90 +.337 + ++5 +Mike Sweeney, KC +81 +316 +68 +106 +.335 + ++6 +Fred McGriff, TB +77 +271 +33 +90 +.332 + ++7 +Manny Ramirez, BOS +79 +305 +55 +101 +.331 + ++8 +Jeff Conine, BAL +61 +233 +35 +76 +.326 + ++9 +Bret Boone, SEA +80 +316 +60 +103 +.326 + ++10 +Bernie Williams, NYY +67 +247 +53 +80 +.324 + ++11 +Shannon Stewart, TOR +81 +337 +58 +109 +.323 + ++12 +John Olerud, SEA +81 +287 +52 +91 +.317 + ++13 +Alex Rodriguez, TEX +81 +317 +70 +100 +.315 + ++14 +Doug Mientkiewicz, MIN +77 +285 +43 +89 +.312 + ++15 +Jorge Posada, NYY +72 +245 +33 +76 +.310 + ++16 +Cristian Guzman, MIN +76 +324 +56 +99 +.306 + ++17 +Magglio Ordonez, SOX +78 +286 +48 +87 +.304 + ++18 +Edgar Martinez, SEA +76 +267 +48 +81 +.303 + ++19 +Adam Kennedy, ANA +67 +241 +29 +73 +.303 + ++20 +Carlos Lee, SOX +73 +268 +39 +81 +.302 + ++21 +Rey Sanchez, KC +78 +307 +40 +92 +.300 + ++22 +Tony Clark, DET +71 +247 +44 +74 +.300 + ++23 +Matt Lawton, MIN +80 +291 +56 +87 +.299 + ++24 +Ellis Burks, CLE +70 +261 +53 +77 +.295 + ++25 +Melvin Mora, BAL +71 +240 +30 +70 +.292 + ++26 +Ivan Rodriguez, TEX +64 +264 +41 +77 +.292 + ++27 +Bobby Higginson, DET +65 +234 +41 +68 +.291 + ++28 +Scott Brosius, NYY +79 +279 +43 +81 +.290 + ++29 +Jose Macias, DET +66 +249 +31 +72 +.289 + ++30 +Derek Jeter, NYY +76 +316 +52 +91 +.288 + ++31 +Jose Valentin, SOX +60 +227 +40 +65 +.286 + ++32 +Damion Easley, DET +72 +274 +33 +78 +.285 + ++33 +Carl Everett, BOS +68 +282 +46 +80 +.284 + ++34 +Jermaine Dye, KC +78 +300 +44 +85 +.283 + ++35 +Frank Menechino, OAK +69 +258 +46 +73 +.283 + ++36 +David Eckstein, ANA +77 +290 +41 +82 +.283 + ++37 +Darin Erstad, ANA +79 +322 +47 +91 +.283 + ++38 +Raul Mondesi, TOR +81 +315 +57 +89 +.283 + ++39 +Paul Konerko, SOX +76 +274 +48 +76 +.277 + ++40 +Jim Thome, CLE +75 +250 +47 +69 +.276 + + July 3, 2001, at 12:36 PM ET + diff --git a/src/TSN/XML/SportInfo.hs b/src/TSN/XML/SportInfo.hs index 232d3f4..366dcd4 100644 --- a/src/TSN/XML/SportInfo.hs +++ b/src/TSN/XML/SportInfo.hs @@ -105,7 +105,7 @@ dtds = "Minor_Baseball_League_Leaders_XML.dtd", "Minor_Baseball_Standings_XML.dtd", "Minor_Baseball_Transactions_XML.dtd", - "mlbbattingavgxml.dtd", -- no dtd + "mlbbattingavgxml.dtd", "mlbdoublesleadersxml.dtd", -- no dtd "MLBGamesPlayedXML.dtd", -- no dtd "MLBGIDPXML.dtd", -- no dtd @@ -349,7 +349,8 @@ sport_info_test_files = "minorscoresxml.xml", "Minor_Baseball_League_Leaders_XML.xml", "Minor_Baseball_Standings_XML.xml", - "Minor_Baseball_Transactions_XML.xml" + "Minor_Baseball_Transactions_XML.xml", + "mlbbattingavgxml.xml" ] diff --git a/test/xml/sportinfo/mlbbattingavgxml.dtd b/test/xml/sportinfo/mlbbattingavgxml.dtd new file mode 100644 index 0000000..d9dc9ba --- /dev/null +++ b/test/xml/sportinfo/mlbbattingavgxml.dtd @@ -0,0 +1,30 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/test/xml/sportinfo/mlbbattingavgxml.xml b/test/xml/sportinfo/mlbbattingavgxml.xml new file mode 100644 index 0000000..44c73dd --- /dev/null +++ b/test/xml/sportinfo/mlbbattingavgxml.xml @@ -0,0 +1,370 @@ + + + +171717 +AAX%AL-BATTINGAVG-LEADERS +Statistics +MLB +2001 AL Batting Average Leaders ++1 +Roberto Alomar, CLE +79 +291 +54 +103 +.354 + ++2 +Ichiro Suzuki, SEA +79 +361 +71 +126 +.349 + ++3 +Juan Gonzalez, CLE +75 +296 +57 +101 +.341 + ++4 +Jason Giambi, OAK +79 +267 +46 +90 +.337 + ++5 +Mike Sweeney, KC +81 +316 +68 +106 +.335 + ++6 +Fred McGriff, TB +77 +271 +33 +90 +.332 + ++7 +Manny Ramirez, BOS +79 +305 +55 +101 +.331 + ++8 +Jeff Conine, BAL +61 +233 +35 +76 +.326 + ++9 +Bret Boone, SEA +80 +316 +60 +103 +.326 + ++10 +Bernie Williams, NYY +67 +247 +53 +80 +.324 + ++11 +Shannon Stewart, TOR +81 +337 +58 +109 +.323 + ++12 +John Olerud, SEA +81 +287 +52 +91 +.317 + ++13 +Alex Rodriguez, TEX +81 +317 +70 +100 +.315 + ++14 +Doug Mientkiewicz, MIN +77 +285 +43 +89 +.312 + ++15 +Jorge Posada, NYY +72 +245 +33 +76 +.310 + ++16 +Cristian Guzman, MIN +76 +324 +56 +99 +.306 + ++17 +Magglio Ordonez, SOX +78 +286 +48 +87 +.304 + ++18 +Edgar Martinez, SEA +76 +267 +48 +81 +.303 + ++19 +Adam Kennedy, ANA +67 +241 +29 +73 +.303 + ++20 +Carlos Lee, SOX +73 +268 +39 +81 +.302 + ++21 +Rey Sanchez, KC +78 +307 +40 +92 +.300 + ++22 +Tony Clark, DET +71 +247 +44 +74 +.300 + ++23 +Matt Lawton, MIN +80 +291 +56 +87 +.299 + ++24 +Ellis Burks, CLE +70 +261 +53 +77 +.295 + ++25 +Melvin Mora, BAL +71 +240 +30 +70 +.292 + ++26 +Ivan Rodriguez, TEX +64 +264 +41 +77 +.292 + ++27 +Bobby Higginson, DET +65 +234 +41 +68 +.291 + ++28 +Scott Brosius, NYY +79 +279 +43 +81 +.290 + ++29 +Jose Macias, DET +66 +249 +31 +72 +.289 + ++30 +Derek Jeter, NYY +76 +316 +52 +91 +.288 + ++31 +Jose Valentin, SOX +60 +227 +40 +65 +.286 + ++32 +Damion Easley, DET +72 +274 +33 +78 +.285 + ++33 +Carl Everett, BOS +68 +282 +46 +80 +.284 + ++34 +Jermaine Dye, KC +78 +300 +44 +85 +.283 + ++35 +Frank Menechino, OAK +69 +258 +46 +73 +.283 + ++36 +David Eckstein, ANA +77 +290 +41 +82 +.283 + ++37 +Darin Erstad, ANA +79 +322 +47 +91 +.283 + ++38 +Raul Mondesi, TOR +81 +315 +57 +89 +.283 + ++39 +Paul Konerko, SOX +76 +274 +48 +76 +.277 + ++40 +Jim Thome, CLE +75 +250 +47 +69 +.276 + + July 3, 2001, at 12:36 PM ET +