From: Michael Orlitzky Date: Wed, 18 Jun 2014 15:33:55 +0000 (-0400) Subject: Add SportInfo support for mlbtriplesleadersxml.dtd. X-Git-Tag: 0.0.6~148 X-Git-Url: https://gitweb.michael.orlitzky.com/?a=commitdiff_plain;h=160b2657d9dc02bfac55abe4c0e2fcba61de3da8;p=dead%2Fhtsn-import.git Add SportInfo support for mlbtriplesleadersxml.dtd. --- diff --git a/doc/man1/htsn-import.1 b/doc/man1/htsn-import.1 index cce26ce..6c64304 100644 --- a/doc/man1/htsn-import.1 +++ b/doc/man1/htsn-import.1 @@ -222,6 +222,8 @@ mlbstandxml_preseason.dtd mlbstolenbasexml.dtd .IP \[bu] mlbtotalbasesleadersxml.dtd +.IP \[bu] +mlbtriplesleadersxml.dtd .RE .P The GameInfo and SportInfo types do not have their own top-level diff --git a/schema/mlbtriplesleadersxml.dtd b/schema/mlbtriplesleadersxml.dtd new file mode 100644 index 0000000..912fcab --- /dev/null +++ b/schema/mlbtriplesleadersxml.dtd @@ -0,0 +1,28 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/schemagen/mlbtriplesleadersxml/mlbtriplesleadersxml.xml b/schemagen/mlbtriplesleadersxml/mlbtriplesleadersxml.xml new file mode 100644 index 0000000..d129f32 --- /dev/null +++ b/schemagen/mlbtriplesleadersxml/mlbtriplesleadersxml.xml @@ -0,0 +1,330 @@ + + + +2015817 +AAX%AL-TRIPLES-LEADERS +Statistics +MLB +2001 AL Triples Leaders ++1 +Cristian Guzman, MIN +12 +.306 +324 +99 + ++2 +Roberto Alomar, CLE +6 +.354 +291 +103 + ++ +Shannon Stewart, TOR +6 +.323 +337 +109 + ++ +Roger Cedeno, DET +6 +.266 +278 +74 + ++ +Ichiro Suzuki, SEA +6 +.349 +361 +126 + ++6 +Juan Encarnacion, DET +5 +.256 +254 +65 + ++7 +Carlos Beltran, KC +4 +.266 +312 +83 + ++ +Mike Cameron, SEA +4 +.270 +270 +73 + ++ +Jerry Hairston, BAL +4 +.274 +281 +77 + ++ +Carl Everett, BOS +4 +.284 +282 +80 + ++ +Luis Alicea, KC +4 +.280 +218 +61 + ++ +Rey Sanchez, KC +4 +.300 +307 +92 + ++13 +Wendell Magee, DET +3 +.244 +90 +22 + ++ +Jose Cruz, TOR +3 +.274 +252 +69 + ++ +Raul Mondesi, TOR +3 +.283 +315 +89 + ++ +Frank Catalanotto, TEX +3 +.300 +190 +57 + ++ +Randy Winn, TB +3 +.282 +156 +44 + ++ +Shane Halter, DET +3 +.309 +152 +47 + ++ +Damion Easley, DET +3 +.285 +274 +78 + ++ +Luis Rivas, MIN +3 +.243 +259 +63 + ++ +Brian Daubach, BOS +3 +.285 +221 +63 + ++ +Troy O`Leary, BOS +3 +.262 +191 +50 + ++23 +Frank Menechino, OAK +2 +.283 +258 +73 + ++ +Derek Jeter, NYY +2 +.288 +316 +91 + ++ +Jose Offerman, BOS +2 +.270 +289 +78 + ++ +Jose Macias, DET +2 +.289 +249 +72 + ++ +Chad Allen, MIN +2 +.290 +100 +29 + ++ +Russ Johnson, TB +2 +.273 +161 +44 + ++ +Jolbert Cabrera, CLE +2 +.286 +126 +36 + ++ +Chris Woodward, TOR +2 +.200 +60 +12 + ++ +Russell Branyan, CLE +2 +.235 +204 +48 + ++ +Omar Vizquel, CLE +2 +.262 +302 +79 + ++ +Carlos Lee, SOX +2 +.302 +268 +81 + ++ +Jose Valentin, SOX +2 +.286 +227 +65 + ++ +Ray Durham, SOX +2 +.247 +296 +73 + ++ +Bo Porter, TEX +2 +.254 +63 +16 + ++ +Ruben Mateo, CIN +2 +.248 +129 +32 + ++ +Quinton McCracken, MIN +2 +.267 +45 +12 + ++ +Adam Kennedy, ANA +2 +.303 +241 +73 + ++ +Ben Grieve, TB +2 +.245 +282 +69 + + July 3, 2001, at 12:38 PM ET + diff --git a/src/TSN/XML/SportInfo.hs b/src/TSN/XML/SportInfo.hs index 3e5a84f..fef70b4 100644 --- a/src/TSN/XML/SportInfo.hs +++ b/src/TSN/XML/SportInfo.hs @@ -128,7 +128,7 @@ dtds = "mlbstandxml_preseason.dtd", "mlbstolenbasexml.dtd", "mlbtotalbasesleadersxml.dtd", - "mlbtriplesleadersxml.dtd", -- no dtd + "mlbtriplesleadersxml.dtd", "MLBWalkRateXML.dtd", -- no dtd "mlbwalksleadersxml.dtd", -- no dtd "MLBXtraBaseHitsXML.dtd", -- no dtd @@ -372,7 +372,8 @@ sport_info_test_files = "mlbstandxml.xml", "mlbstandxml_preseason.xml", "mlbstolenbasexml.xml", - "mlbtotalbasesleadersxml.xml" + "mlbtotalbasesleadersxml.xml", + "mlbtriplesleadersxml.xml" ] diff --git a/test/xml/sportinfo/mlbtriplesleadersxml.dtd b/test/xml/sportinfo/mlbtriplesleadersxml.dtd new file mode 100644 index 0000000..912fcab --- /dev/null +++ b/test/xml/sportinfo/mlbtriplesleadersxml.dtd @@ -0,0 +1,28 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/test/xml/sportinfo/mlbtriplesleadersxml.xml b/test/xml/sportinfo/mlbtriplesleadersxml.xml new file mode 100644 index 0000000..d129f32 --- /dev/null +++ b/test/xml/sportinfo/mlbtriplesleadersxml.xml @@ -0,0 +1,330 @@ + + + +2015817 +AAX%AL-TRIPLES-LEADERS +Statistics +MLB +2001 AL Triples Leaders ++1 +Cristian Guzman, MIN +12 +.306 +324 +99 + ++2 +Roberto Alomar, CLE +6 +.354 +291 +103 + ++ +Shannon Stewart, TOR +6 +.323 +337 +109 + ++ +Roger Cedeno, DET +6 +.266 +278 +74 + ++ +Ichiro Suzuki, SEA +6 +.349 +361 +126 + ++6 +Juan Encarnacion, DET +5 +.256 +254 +65 + ++7 +Carlos Beltran, KC +4 +.266 +312 +83 + ++ +Mike Cameron, SEA +4 +.270 +270 +73 + ++ +Jerry Hairston, BAL +4 +.274 +281 +77 + ++ +Carl Everett, BOS +4 +.284 +282 +80 + ++ +Luis Alicea, KC +4 +.280 +218 +61 + ++ +Rey Sanchez, KC +4 +.300 +307 +92 + ++13 +Wendell Magee, DET +3 +.244 +90 +22 + ++ +Jose Cruz, TOR +3 +.274 +252 +69 + ++ +Raul Mondesi, TOR +3 +.283 +315 +89 + ++ +Frank Catalanotto, TEX +3 +.300 +190 +57 + ++ +Randy Winn, TB +3 +.282 +156 +44 + ++ +Shane Halter, DET +3 +.309 +152 +47 + ++ +Damion Easley, DET +3 +.285 +274 +78 + ++ +Luis Rivas, MIN +3 +.243 +259 +63 + ++ +Brian Daubach, BOS +3 +.285 +221 +63 + ++ +Troy O`Leary, BOS +3 +.262 +191 +50 + ++23 +Frank Menechino, OAK +2 +.283 +258 +73 + ++ +Derek Jeter, NYY +2 +.288 +316 +91 + ++ +Jose Offerman, BOS +2 +.270 +289 +78 + ++ +Jose Macias, DET +2 +.289 +249 +72 + ++ +Chad Allen, MIN +2 +.290 +100 +29 + ++ +Russ Johnson, TB +2 +.273 +161 +44 + ++ +Jolbert Cabrera, CLE +2 +.286 +126 +36 + ++ +Chris Woodward, TOR +2 +.200 +60 +12 + ++ +Russell Branyan, CLE +2 +.235 +204 +48 + ++ +Omar Vizquel, CLE +2 +.262 +302 +79 + ++ +Carlos Lee, SOX +2 +.302 +268 +81 + ++ +Jose Valentin, SOX +2 +.286 +227 +65 + ++ +Ray Durham, SOX +2 +.247 +296 +73 + ++ +Bo Porter, TEX +2 +.254 +63 +16 + ++ +Ruben Mateo, CIN +2 +.248 +129 +32 + ++ +Quinton McCracken, MIN +2 +.267 +45 +12 + ++ +Adam Kennedy, ANA +2 +.303 +241 +73 + ++ +Ben Grieve, TB +2 +.245 +282 +69 + + July 3, 2001, at 12:38 PM ET +