From: Michael Orlitzky Date: Wed, 18 Jun 2014 15:19:52 +0000 (-0400) Subject: Add SportInfo support for mlbstolenbasexml.dtd. X-Git-Tag: 0.0.6~150 X-Git-Url: https://gitweb.michael.orlitzky.com/?a=commitdiff_plain;h=f4f42b7f5b922de41edb2d74a538dd64e9d7c1a2;p=dead%2Fhtsn-import.git Add SportInfo support for mlbstolenbasexml.dtd. --- diff --git a/doc/man1/htsn-import.1 b/doc/man1/htsn-import.1 index 15be458..2bf8138 100644 --- a/doc/man1/htsn-import.1 +++ b/doc/man1/htsn-import.1 @@ -218,6 +218,8 @@ mlbsluggingpctxml.dtd mlbstandxml.dtd .IP \[bu] mlbstandxml_preseason.dtd +.IP \[bu] +mlbstolenbasexml.dtd .RE .P The GameInfo and SportInfo types do not have their own top-level diff --git a/schema/mlbstolenbasexml.dtd b/schema/mlbstolenbasexml.dtd new file mode 100644 index 0000000..f9d5eea --- /dev/null +++ b/schema/mlbstolenbasexml.dtd @@ -0,0 +1,24 @@ + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/schemagen/mlbstolenbasexml/mlbstolenbasexml.xml b/schemagen/mlbstolenbasexml/mlbstolenbasexml.xml new file mode 100644 index 0000000..e7259e8 --- /dev/null +++ b/schemagen/mlbstolenbasexml/mlbstolenbasexml.xml @@ -0,0 +1,250 @@ + + + +1791314 +AAX%AL-SB-LEADERS +Statistics +MLB +2001 AL Stolen Bases Leaders ++1 +Ichiro Suzuki, SEA +27 +6 + ++2 +Chuck Knoblauch, NYY +25 +4 + ++3 +Roger Cedeno, DET +24 +6 + ++4 +Mark McLemore, SEA +23 +1 + ++ +Alfonso Soriano, NYY +23 +6 + ++6 +Derek Jeter, NYY +17 +2 + ++ +Mike Cameron, SEA +17 +4 + ++ +Matt Lawton, MIN +17 +5 + ++ +Jerry Hairston, BAL +17 +6 + ++10 +Cristian Guzman, MIN +16 +6 + ++11 +Jose Cruz, TOR +15 +0 + ++ +Raul Mondesi, TOR +15 +7 + ++13 +Luis Rivas, MIN +14 +3 + ++ +Johnny Damon, OAK +14 +7 + ++15 +Roberto Alomar, CLE +13 +4 + ++ +Shannon Stewart, TOR +13 +6 + ++ +Darin Erstad, ANA +13 +2 + ++18 +Carlos Lee, SOX +12 +3 + ++19 +Omar Vizquel, CLE +11 +7 + ++ +Magglio Ordonez, SOX +11 +3 + ++ +Bobby Higginson, DET +11 +5 + ++ +Corey Koskie, MIN +11 +1 + ++ +Delino DeShields, BAL +11 +1 + ++24 +Damian Rolls, TB +10 +2 + ++ +Carlos Beltran, KC +10 +0 + ++ +Ray Durham, SOX +10 +5 + ++ +Gerald Williams, NYY +10 +4 + ++28 +Jose Macias, DET +9 +2 + ++ +Chris Singleton, SOX +9 +8 + ++ +Mike Bordick, BAL +9 +3 + ++ +Bernie Williams, NYY +9 +1 + ++32 +Mike Sweeney, KC +8 +1 + ++ +Kenny Lofton, CLE +8 +4 + ++ +David Eckstein, ANA +8 +1 + ++ +Brady Anderson, BAL +8 +2 + ++ +Carl Everett, BOS +8 +1 + ++ +Paul O`Neill, NYY +8 +2 + ++ +Rey Sanchez, KC +8 +1 + ++39 +Jermaine Dye, KC +7 +1 + ++ +Alex Gonzalez, TOR +7 +4 + + July 3, 2001, at 12:38 PM ET + diff --git a/src/TSN/XML/SportInfo.hs b/src/TSN/XML/SportInfo.hs index 9e27c51..2350ea5 100644 --- a/src/TSN/XML/SportInfo.hs +++ b/src/TSN/XML/SportInfo.hs @@ -126,7 +126,7 @@ dtds = "mlbsluggingpctxml.dtd", "mlbstandxml.dtd", "mlbstandxml_preseason.dtd", - "mlbstolenbasexml.dtd", -- no dtd + "mlbstolenbasexml.dtd", "mlbtotalbasesleadersxml.dtd", -- no dtd "mlbtriplesleadersxml.dtd", -- no dtd "MLBWalkRateXML.dtd", -- no dtd @@ -370,7 +370,8 @@ sport_info_test_files = "MLBSBSuccessXML.xml", "mlbsluggingpctxml.xml", "mlbstandxml.xml", - "mlbstandxml_preseason.xml" + "mlbstandxml_preseason.xml", + "mlbstolenbasexml.xml" ] diff --git a/test/xml/sportinfo/mlbstolenbasexml.dtd b/test/xml/sportinfo/mlbstolenbasexml.dtd new file mode 100644 index 0000000..f9d5eea --- /dev/null +++ b/test/xml/sportinfo/mlbstolenbasexml.dtd @@ -0,0 +1,24 @@ + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/test/xml/sportinfo/mlbstolenbasexml.xml b/test/xml/sportinfo/mlbstolenbasexml.xml new file mode 100644 index 0000000..e7259e8 --- /dev/null +++ b/test/xml/sportinfo/mlbstolenbasexml.xml @@ -0,0 +1,250 @@ + + + +1791314 +AAX%AL-SB-LEADERS +Statistics +MLB +2001 AL Stolen Bases Leaders ++1 +Ichiro Suzuki, SEA +27 +6 + ++2 +Chuck Knoblauch, NYY +25 +4 + ++3 +Roger Cedeno, DET +24 +6 + ++4 +Mark McLemore, SEA +23 +1 + ++ +Alfonso Soriano, NYY +23 +6 + ++6 +Derek Jeter, NYY +17 +2 + ++ +Mike Cameron, SEA +17 +4 + ++ +Matt Lawton, MIN +17 +5 + ++ +Jerry Hairston, BAL +17 +6 + ++10 +Cristian Guzman, MIN +16 +6 + ++11 +Jose Cruz, TOR +15 +0 + ++ +Raul Mondesi, TOR +15 +7 + ++13 +Luis Rivas, MIN +14 +3 + ++ +Johnny Damon, OAK +14 +7 + ++15 +Roberto Alomar, CLE +13 +4 + ++ +Shannon Stewart, TOR +13 +6 + ++ +Darin Erstad, ANA +13 +2 + ++18 +Carlos Lee, SOX +12 +3 + ++19 +Omar Vizquel, CLE +11 +7 + ++ +Magglio Ordonez, SOX +11 +3 + ++ +Bobby Higginson, DET +11 +5 + ++ +Corey Koskie, MIN +11 +1 + ++ +Delino DeShields, BAL +11 +1 + ++24 +Damian Rolls, TB +10 +2 + ++ +Carlos Beltran, KC +10 +0 + ++ +Ray Durham, SOX +10 +5 + ++ +Gerald Williams, NYY +10 +4 + ++28 +Jose Macias, DET +9 +2 + ++ +Chris Singleton, SOX +9 +8 + ++ +Mike Bordick, BAL +9 +3 + ++ +Bernie Williams, NYY +9 +1 + ++32 +Mike Sweeney, KC +8 +1 + ++ +Kenny Lofton, CLE +8 +4 + ++ +David Eckstein, ANA +8 +1 + ++ +Brady Anderson, BAL +8 +2 + ++ +Carl Everett, BOS +8 +1 + ++ +Paul O`Neill, NYY +8 +2 + ++ +Rey Sanchez, KC +8 +1 + ++39 +Jermaine Dye, KC +7 +1 + ++ +Alex Gonzalez, TOR +7 +4 + + July 3, 2001, at 12:38 PM ET +