From: Michael Orlitzky Date: Tue, 17 Jun 2014 13:09:51 +0000 (-0400) Subject: Add SportInfo support for MLBGIDPXML.dtd. X-Git-Tag: 0.0.6~168 X-Git-Url: https://gitweb.michael.orlitzky.com/?a=commitdiff_plain;h=3fe63d757e499ad4adff87d5339ddc960a43c6a0;p=dead%2Fhtsn-import.git Add SportInfo support for MLBGIDPXML.dtd. --- diff --git a/doc/man1/htsn-import.1 b/doc/man1/htsn-import.1 index 71a8dad..c6de8cf 100644 --- a/doc/man1/htsn-import.1 +++ b/doc/man1/htsn-import.1 @@ -182,6 +182,8 @@ mlbbattingavgxml.dtd mlbdoublesleadersxml.dtd .IP \[bu] MLBGamesPlayedXML.dtd +.IP \[bu] +MLBGIDPXML.dtd .RE .P The GameInfo and SportInfo types do not have their own top-level diff --git a/schema/MLBGIDPXML.dtd b/schema/MLBGIDPXML.dtd new file mode 100644 index 0000000..92e736e --- /dev/null +++ b/schema/MLBGIDPXML.dtd @@ -0,0 +1,24 @@ + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/schemagen/MLBGIDPXML/MLBGIDPXML.xml b/schemagen/MLBGIDPXML/MLBGIDPXML.xml new file mode 100644 index 0000000..94424f1 --- /dev/null +++ b/schemagen/MLBGIDPXML/MLBGIDPXML.xml @@ -0,0 +1,250 @@ + + + +17 +AAX%AL-GROUNDINTODP-LEADERS +Statistics +MLB +2002 AL Ground Into Double Play Leaders ++1 +Jason Giambi, NYY +12 +279 + ++2 +Ricky Gutierrez, CLE +11 +226 + ++ +Jorge Posada, NYY +11 +252 + ++4 +Travis Fryman, CLE +10 +241 + ++ +Bernie Williams, NYY +10 +288 + ++ +Ruben Sierra, SEA +10 +262 + ++ +Miguel Tejada, OAK +10 +316 + ++ +Dmitri Young, DET +10 +172 + ++9 +Jose Offerman, BOS +9 +182 + ++ +Nomar Garciaparra, BOS +9 +288 + ++ +Shea Hillenbrand, BOS +9 +297 + ++ +Robin Ventura, NYY +9 +230 + ++ +Tony Batista, BAL +9 +276 + ++ +Geronimo Gil, BAL +9 +192 + ++ +Ray Durham, SOX +9 +253 + ++ +Ramon Hernandez, OAK +9 +197 + ++ +Robert Fick, DET +9 +269 + ++18 +Matt Lawton, CLE +8 +266 + ++ +Milton Bradley, CLE +8 +138 + ++ +Ben Molina, ANA +8 +242 + ++ +Nick Johnson, NYY +8 +227 + ++ +Torii Hunter, MIN +8 +300 + ++ +Frank Thomas, SOX +8 +267 + ++ +Paul Konerko, SOX +8 +290 + ++ +David Justice, OAK +8 +138 + ++26 +Shannon Stewart, TOR +7 +244 + ++ +Einar Diaz, CLE +7 +202 + ++ +Raul Mondesi, TOR +7 +285 + ++ +Derek Jeter, NYY +7 +319 + ++ +A.J. Pierzynski, MIN +7 +216 + ++ +Carlos Beltran, KC +7 +283 + ++ +Magglio Ordonez, SOX +7 +281 + ++ +John Olerud, SEA +7 +267 + ++ +Alex Rodriguez, TEX +7 +294 + ++ +Michael Young, TEX +7 +244 + ++ +Terrence Long, OAK +7 +279 + ++ +Jermaine Dye, OAK +7 +187 + ++ +Craig Paquette, DET +7 +159 + ++ +Herbert Perry, TEX +7 +182 + ++ +Randall Simon, DET +7 +254 + + June 27, 2002, at 11:52 AM ET + diff --git a/src/TSN/XML/SportInfo.hs b/src/TSN/XML/SportInfo.hs index 0bae73f..27817fb 100644 --- a/src/TSN/XML/SportInfo.hs +++ b/src/TSN/XML/SportInfo.hs @@ -108,7 +108,7 @@ dtds = "mlbbattingavgxml.dtd", "mlbdoublesleadersxml.dtd", "MLBGamesPlayedXML.dtd", - "MLBGIDPXML.dtd", -- no dtd + "MLBGIDPXML.dtd", "MLBHitByPitchXML.dtd", -- no dtd "mlbhitsleadersxml.dtd", -- no dtd "mlbhomerunsxml.dtd", -- no dtd @@ -352,7 +352,8 @@ sport_info_test_files = "Minor_Baseball_Transactions_XML.xml", "mlbbattingavgxml.xml", "mlbdoublesleadersxml.xml", - "MLBGamesPlayedXML.xml" + "MLBGamesPlayedXML.xml", + "MLBGIDPXML.xml" ] diff --git a/test/xml/sportinfo/MLBGIDPXML.dtd b/test/xml/sportinfo/MLBGIDPXML.dtd new file mode 100644 index 0000000..92e736e --- /dev/null +++ b/test/xml/sportinfo/MLBGIDPXML.dtd @@ -0,0 +1,24 @@ + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/test/xml/sportinfo/MLBGIDPXML.xml b/test/xml/sportinfo/MLBGIDPXML.xml new file mode 100644 index 0000000..4ec7563 --- /dev/null +++ b/test/xml/sportinfo/MLBGIDPXML.xml @@ -0,0 +1,250 @@ + + + +176907 +AAX%AL-GROUNDINTODP-LEADERS +Statistics +MLB +2002 AL Ground Into Double Play Leaders ++1 +Jason Giambi, NYY +12 +279 + ++2 +Ricky Gutierrez, CLE +11 +226 + ++ +Jorge Posada, NYY +11 +252 + ++4 +Travis Fryman, CLE +10 +241 + ++ +Bernie Williams, NYY +10 +288 + ++ +Ruben Sierra, SEA +10 +262 + ++ +Miguel Tejada, OAK +10 +316 + ++ +Dmitri Young, DET +10 +172 + ++9 +Jose Offerman, BOS +9 +182 + ++ +Nomar Garciaparra, BOS +9 +288 + ++ +Shea Hillenbrand, BOS +9 +297 + ++ +Robin Ventura, NYY +9 +230 + ++ +Tony Batista, BAL +9 +276 + ++ +Geronimo Gil, BAL +9 +192 + ++ +Ray Durham, SOX +9 +253 + ++ +Ramon Hernandez, OAK +9 +197 + ++ +Robert Fick, DET +9 +269 + ++18 +Matt Lawton, CLE +8 +266 + ++ +Milton Bradley, CLE +8 +138 + ++ +Ben Molina, ANA +8 +242 + ++ +Nick Johnson, NYY +8 +227 + ++ +Torii Hunter, MIN +8 +300 + ++ +Frank Thomas, SOX +8 +267 + ++ +Paul Konerko, SOX +8 +290 + ++ +David Justice, OAK +8 +138 + ++26 +Shannon Stewart, TOR +7 +244 + ++ +Einar Diaz, CLE +7 +202 + ++ +Raul Mondesi, TOR +7 +285 + ++ +Derek Jeter, NYY +7 +319 + ++ +A.J. Pierzynski, MIN +7 +216 + ++ +Carlos Beltran, KC +7 +283 + ++ +Magglio Ordonez, SOX +7 +281 + ++ +John Olerud, SEA +7 +267 + ++ +Alex Rodriguez, TEX +7 +294 + ++ +Michael Young, TEX +7 +244 + ++ +Terrence Long, OAK +7 +279 + ++ +Jermaine Dye, OAK +7 +187 + ++ +Craig Paquette, DET +7 +159 + ++ +Herbert Perry, TEX +7 +182 + ++ +Randall Simon, DET +7 +254 + + June 27, 2002, at 11:52 AM ET +