From: Michael Orlitzky Date: Mon, 23 Jun 2014 13:43:53 +0000 (-0400) Subject: Add SportInfo support for NFLPassLeadXML.dtd. X-Git-Tag: 0.0.6~100 X-Git-Url: https://gitweb.michael.orlitzky.com/?a=commitdiff_plain;h=547aad871620e53050f08c827efc0f85d45a7ab9;p=dead%2Fhtsn-import.git Add SportInfo support for NFLPassLeadXML.dtd. Mark DTDs for which no sample XML exists "no xml" instead of "no dtd." --- diff --git a/doc/man1/htsn-import.1 b/doc/man1/htsn-import.1 index ca7b1a2..a27c92b 100644 --- a/doc/man1/htsn-import.1 +++ b/doc/man1/htsn-import.1 @@ -318,6 +318,8 @@ NFLInside20XML.dtd NFLKickoffsXML.dtd .IP \[bu] NFLMondayNightXML.dtd +.IP \[bu] +NFLPassLeadXML.dtd .RE .P The GameInfo and SportInfo types do not have their own top-level diff --git a/schema/NFLPassLeadXML.dtd b/schema/NFLPassLeadXML.dtd new file mode 100644 index 0000000..423d0d6 --- /dev/null +++ b/schema/NFLPassLeadXML.dtd @@ -0,0 +1,42 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/schemagen/NFLPassLeadXML/NFLPassLeadXML.xml b/schemagen/NFLPassLeadXML/NFLPassLeadXML.xml new file mode 100644 index 0000000..1046086 --- /dev/null +++ b/schemagen/NFLPassLeadXML/NFLPassLeadXML.xml @@ -0,0 +1,235 @@ + + + +2217 +ABX%AFC-PASSERS +Statistics +NFL +2001 AFC Passing Leaders ++1 +R.Gannon, OAK +384 +254 +66.1 +2821 +7.35 +22 +5.7 +49 +5 +1.3 +101.5 + ++2 +T.Brady, NE +330 +217 +65.8 +2300 +6.97 +16 +4.8 +91 +9 +2.7 +90.7 + ++3 +M.Brunell, JAC +341 +211 +61.9 +2418 +7.09 +14 +4.1 +40 +7 +2.1 +88.3 + ++4 +S.McNair, TEN +326 +197 +60.4 +2442 +7.49 +15 +4.6 +71 +10 +3.1 +86.2 + ++5 +P.Manning, IND +419 +264 +63.0 +3192 +7.62 +20 +4.8 +86 +20 +4.8 +82.4 + ++6 +J.Fiedler, MIA +340 +211 +62.1 +2520 +7.41 +16 +4.7 +74 +15 +4.4 +82.0 + ++7 +B.Griese, DEN +393 +240 +61.1 +2534 +6.45 +21 +5.3 +65 +15 +3.8 +81.7 + ++8 +A.Van Pelt, BUF +198 +120 +60.6 +1425 +7.20 +10 +5.1 +80 +9 +4.5 +80.5 + ++9 +K.Stewart, PIT +334 +202 +60.5 +2227 +6.67 +6 +1.8 +62 +5 +1.5 +80.0 + ++10 +V.Testaverde, NYJ +300 +178 +59.3 +1814 +6.05 +10 +3.3 +39 +8 +2.7 +76.7 + ++11 +R.Johnson, BUF +216 +134 +62.0 +1465 +6.78 +5 +2.3 +61 +7 +3.2 +76.3 + ++12 +E.Grbac, BAL +335 +198 +59.1 +2328 +6.95 +12 +3.6 +77 +15 +4.5 +73.6 + ++13 +D.Flutie, SD +404 +226 +55.9 +2697 +6.68 +12 +3.0 +78 +13 +3.2 +73.0 + ++14 +T.Couch, CLE +338 +196 +58.0 +2167 +6.41 +13 +3.8 +55 +14 +4.1 +72.7 + ++15 +M.Hasselback, SEA +270 +148 +54.8 +1686 +6.24 +6 +2.2 +64 +7 +2.6 +70.4 + + December 14, 2001, at 11:58 AM ET + diff --git a/src/TSN/XML/SportInfo.hs b/src/TSN/XML/SportInfo.hs index 29c3138..49cb768 100644 --- a/src/TSN/XML/SportInfo.hs +++ b/src/TSN/XML/SportInfo.hs @@ -78,17 +78,17 @@ dtds = "CBASK_FGPctXML.dtd", "CBASK_FoulsXML.dtd", "CBASK_FTPctXML.dtd", - "Cbask_Indv_No_Avg_XML.dtd", -- no dtd + "Cbask_Indv_No_Avg_XML.dtd", -- no xml "Cbask_Indv_Scoring_XML.dtd", - "Cbask_Indv_Shooting_XML.dtd", -- no dtd + "Cbask_Indv_Shooting_XML.dtd", -- no xml "CBASK_MinutesXML.dtd", "Cbask_Polls_XML.dtd", "CBASK_ReboundsXML.dtd", "CBASK_ScoringLeadersXML.dtd", - "CBASK_StealsXML.dtd", -- no dtd - "Cbask_Team_Scoring_Rebound_Margin_XML.dtd", -- no dtd - "Cbask_Team_Scoring_XML.dtd", -- no dtd - "Cbask_Team_Shooting_Pct_XML.dtd", -- no dtd + "CBASK_StealsXML.dtd", -- no xml + "Cbask_Team_Scoring_Rebound_Margin_XML.dtd", -- no xml + "Cbask_Team_Scoring_XML.dtd", -- no xml + "Cbask_Team_Shooting_Pct_XML.dtd", -- no xml "Cbask_Team_ThreePT_Made_XML.dtd", "Cbask_Team_ThreePT_PCT_XML.dtd", "Cbask_Team_Win_Pct_XML.dtd", @@ -174,13 +174,13 @@ dtds = "nflfirstdownxml.dtd", "NFLFumbleLeaderXML.dtd", "NFLGiveTakeXML.dtd", - "NFLGrassTurfDomeOutsideXML.dtd", -- no dtd + "NFLGrassTurfDomeOutsideXML.dtd", -- no xml "NFLInside20XML.dtd", - "NFLInterceptionLeadersXML.dtd", -- no dtd + "NFLInterceptionLeadersXML.dtd", -- no xml "NFLKickoffsXML.dtd", "NFLMondayNightXML.dtd", - "NFLPassingLeadersXML.dtd", -- no dtd - "NFLPassLeadXML.dtd", -- no dtd + "NFLPassingLeadersXML.dtd", -- no xml + "NFLPassLeadXML.dtd", "NFLQBStartsXML.dtd", -- no dtd "NFLReceivingLeadersXML.dtd", -- no dtd "NFLRushingLeadersXML.dtd", -- no dtd @@ -420,7 +420,8 @@ sport_info_test_files = "NFLGiveTakeXML.xml", "NFLInside20XML.xml", "NFLKickoffsXML.xml", - "NFLMondayNightXML.xml" + "NFLMondayNightXML.xml", + "NFLPassLeadXML.xml" ] diff --git a/test/xml/sportinfo/NFLPassLeadXML.dtd b/test/xml/sportinfo/NFLPassLeadXML.dtd new file mode 100644 index 0000000..423d0d6 --- /dev/null +++ b/test/xml/sportinfo/NFLPassLeadXML.dtd @@ -0,0 +1,42 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/test/xml/sportinfo/NFLPassLeadXML.xml b/test/xml/sportinfo/NFLPassLeadXML.xml new file mode 100644 index 0000000..1046086 --- /dev/null +++ b/test/xml/sportinfo/NFLPassLeadXML.xml @@ -0,0 +1,235 @@ + + + +2217 +ABX%AFC-PASSERS +Statistics +NFL +2001 AFC Passing Leaders ++1 +R.Gannon, OAK +384 +254 +66.1 +2821 +7.35 +22 +5.7 +49 +5 +1.3 +101.5 + ++2 +T.Brady, NE +330 +217 +65.8 +2300 +6.97 +16 +4.8 +91 +9 +2.7 +90.7 + ++3 +M.Brunell, JAC +341 +211 +61.9 +2418 +7.09 +14 +4.1 +40 +7 +2.1 +88.3 + ++4 +S.McNair, TEN +326 +197 +60.4 +2442 +7.49 +15 +4.6 +71 +10 +3.1 +86.2 + ++5 +P.Manning, IND +419 +264 +63.0 +3192 +7.62 +20 +4.8 +86 +20 +4.8 +82.4 + ++6 +J.Fiedler, MIA +340 +211 +62.1 +2520 +7.41 +16 +4.7 +74 +15 +4.4 +82.0 + ++7 +B.Griese, DEN +393 +240 +61.1 +2534 +6.45 +21 +5.3 +65 +15 +3.8 +81.7 + ++8 +A.Van Pelt, BUF +198 +120 +60.6 +1425 +7.20 +10 +5.1 +80 +9 +4.5 +80.5 + ++9 +K.Stewart, PIT +334 +202 +60.5 +2227 +6.67 +6 +1.8 +62 +5 +1.5 +80.0 + ++10 +V.Testaverde, NYJ +300 +178 +59.3 +1814 +6.05 +10 +3.3 +39 +8 +2.7 +76.7 + ++11 +R.Johnson, BUF +216 +134 +62.0 +1465 +6.78 +5 +2.3 +61 +7 +3.2 +76.3 + ++12 +E.Grbac, BAL +335 +198 +59.1 +2328 +6.95 +12 +3.6 +77 +15 +4.5 +73.6 + ++13 +D.Flutie, SD +404 +226 +55.9 +2697 +6.68 +12 +3.0 +78 +13 +3.2 +73.0 + ++14 +T.Couch, CLE +338 +196 +58.0 +2167 +6.41 +13 +3.8 +55 +14 +4.1 +72.7 + ++15 +M.Hasselback, SEA +270 +148 +54.8 +1686 +6.24 +6 +2.2 +64 +7 +2.6 +70.4 + + December 14, 2001, at 11:58 AM ET +