From: Michael Orlitzky Date: Tue, 17 Jun 2014 12:46:42 +0000 (-0400) Subject: Add SportInfo support for MLBGamesPlayedXML.dtd. X-Git-Tag: 0.0.6~169 X-Git-Url: https://gitweb.michael.orlitzky.com/?a=commitdiff_plain;h=23e4d38a7e7a4519ce15e5133b7994973a98ad22;p=dead%2Fhtsn-import.git Add SportInfo support for MLBGamesPlayedXML.dtd. --- diff --git a/doc/man1/htsn-import.1 b/doc/man1/htsn-import.1 index 2d4abd4..71a8dad 100644 --- a/doc/man1/htsn-import.1 +++ b/doc/man1/htsn-import.1 @@ -180,6 +180,8 @@ Minor_Baseball_Transactions_XML.dtd mlbbattingavgxml.dtd .IP \[bu] mlbdoublesleadersxml.dtd +.IP \[bu] +MLBGamesPlayedXML.dtd .RE .P The GameInfo and SportInfo types do not have their own top-level diff --git a/schema/MLBGamesPlayedXML.dtd b/schema/MLBGamesPlayedXML.dtd new file mode 100644 index 0000000..45ec9cf --- /dev/null +++ b/schema/MLBGamesPlayedXML.dtd @@ -0,0 +1,22 @@ + + + + + + + + + + + + + + + + + + + + + + diff --git a/schemagen/MLBGamesPlayedXML/MLBGamesPlayedXML.xml b/schemagen/MLBGamesPlayedXML/MLBGamesPlayedXML.xml new file mode 100644 index 0000000..2fb9831 --- /dev/null +++ b/schemagen/MLBGamesPlayedXML/MLBGamesPlayedXML.xml @@ -0,0 +1,210 @@ + + + +11191907 +AAX%AL-GAMESPLAYED-LEADERS +Statistics +MLB +2002 AL Games Played Leaders ++1 +Jim Thome, CLE +77 + ++ +Derek Jeter, NYY +77 + ++ +Torii Hunter, MIN +77 + ++ +Paul Konerko, SOX +77 + ++ +Alex Rodriguez, TEX +77 + ++ +Miguel Tejada, OAK +77 + ++ +Terrence Long, OAK +77 + ++8 +Garret Anderson, ANA +76 + ++ +Jason Giambi, NYY +76 + ++10 +Omar Vizquel, CLE +75 + ++ +Tony Batista, BAL +75 + ++ +Jacque Jones, MIN +75 + ++ +Frank Thomas, SOX +75 + ++ +Ichiro Suzuki, SEA +75 + ++ +Mike Cameron, SEA +75 + ++ +John Olerud, SEA +75 + ++17 +Matt Lawton, CLE +74 + ++ +Tim Salmon, ANA +74 + ++ +Carlos Delgado, TOR +74 + ++ +Jose Cruz, TOR +74 + ++ +Bernie Williams, NYY +74 + ++ +Neifi Perez, KC +74 + ++ +Carlos Beltran, KC +74 + ++ +Magglio Ordonez, SOX +74 + ++25 +Shea Hillenbrand, BOS +73 + ++ +Alfonso Soriano, NYY +73 + ++ +Mike Sweeney, KC +73 + ++ +Bret Boone, SEA +73 + ++29 +Troy Glaus, ANA +72 + ++ +Raul Mondesi, TOR +72 + ++ +Vernon Wells, TOR +72 + ++ +Nick Johnson, NYY +72 + ++33 +Nomar Garciaparra, BOS +71 + ++ +Cristian Guzman, MIN +71 + ++ +Kenny Lofton, SOX +71 + ++ +Ray Durham, SOX +71 + ++ +Royce Clayton, SOX +71 + ++ +Jeff Cirillo, SEA +71 + ++ +Michael Young, TEX +71 + ++ +Randy Winn, TB +71 + + June 27, 2002, at 11:51 AM ET + diff --git a/src/TSN/XML/SportInfo.hs b/src/TSN/XML/SportInfo.hs index 0ab896a..0bae73f 100644 --- a/src/TSN/XML/SportInfo.hs +++ b/src/TSN/XML/SportInfo.hs @@ -107,7 +107,7 @@ dtds = "Minor_Baseball_Transactions_XML.dtd", "mlbbattingavgxml.dtd", "mlbdoublesleadersxml.dtd", - "MLBGamesPlayedXML.dtd", -- no dtd + "MLBGamesPlayedXML.dtd", "MLBGIDPXML.dtd", -- no dtd "MLBHitByPitchXML.dtd", -- no dtd "mlbhitsleadersxml.dtd", -- no dtd @@ -351,7 +351,8 @@ sport_info_test_files = "Minor_Baseball_Standings_XML.xml", "Minor_Baseball_Transactions_XML.xml", "mlbbattingavgxml.xml", - "mlbdoublesleadersxml.xml" + "mlbdoublesleadersxml.xml", + "MLBGamesPlayedXML.xml" ] diff --git a/test/xml/sportinfo/MLBGamesPlayedXML.dtd b/test/xml/sportinfo/MLBGamesPlayedXML.dtd new file mode 100644 index 0000000..45ec9cf --- /dev/null +++ b/test/xml/sportinfo/MLBGamesPlayedXML.dtd @@ -0,0 +1,22 @@ + + + + + + + + + + + + + + + + + + + + + + diff --git a/test/xml/sportinfo/MLBGamesPlayedXML.xml b/test/xml/sportinfo/MLBGamesPlayedXML.xml new file mode 100644 index 0000000..2fb9831 --- /dev/null +++ b/test/xml/sportinfo/MLBGamesPlayedXML.xml @@ -0,0 +1,210 @@ + + + +11191907 +AAX%AL-GAMESPLAYED-LEADERS +Statistics +MLB +2002 AL Games Played Leaders ++1 +Jim Thome, CLE +77 + ++ +Derek Jeter, NYY +77 + ++ +Torii Hunter, MIN +77 + ++ +Paul Konerko, SOX +77 + ++ +Alex Rodriguez, TEX +77 + ++ +Miguel Tejada, OAK +77 + ++ +Terrence Long, OAK +77 + ++8 +Garret Anderson, ANA +76 + ++ +Jason Giambi, NYY +76 + ++10 +Omar Vizquel, CLE +75 + ++ +Tony Batista, BAL +75 + ++ +Jacque Jones, MIN +75 + ++ +Frank Thomas, SOX +75 + ++ +Ichiro Suzuki, SEA +75 + ++ +Mike Cameron, SEA +75 + ++ +John Olerud, SEA +75 + ++17 +Matt Lawton, CLE +74 + ++ +Tim Salmon, ANA +74 + ++ +Carlos Delgado, TOR +74 + ++ +Jose Cruz, TOR +74 + ++ +Bernie Williams, NYY +74 + ++ +Neifi Perez, KC +74 + ++ +Carlos Beltran, KC +74 + ++ +Magglio Ordonez, SOX +74 + ++25 +Shea Hillenbrand, BOS +73 + ++ +Alfonso Soriano, NYY +73 + ++ +Mike Sweeney, KC +73 + ++ +Bret Boone, SEA +73 + ++29 +Troy Glaus, ANA +72 + ++ +Raul Mondesi, TOR +72 + ++ +Vernon Wells, TOR +72 + ++ +Nick Johnson, NYY +72 + ++33 +Nomar Garciaparra, BOS +71 + ++ +Cristian Guzman, MIN +71 + ++ +Kenny Lofton, SOX +71 + ++ +Ray Durham, SOX +71 + ++ +Royce Clayton, SOX +71 + ++ +Jeff Cirillo, SEA +71 + ++ +Michael Young, TEX +71 + ++ +Randy Winn, TB +71 + + June 27, 2002, at 11:51 AM ET +