From: Michael Orlitzky Date: Wed, 11 Jun 2014 20:45:28 +0000 (-0400) Subject: Add SportInfo support for CBASK_AssistsXML.dtd. X-Git-Tag: 0.0.6~231 X-Git-Url: https://gitweb.michael.orlitzky.com/?a=commitdiff_plain;h=9e052ffac372ddda44a4661c9d3e0551a9f32a56;p=dead%2Fhtsn-import.git Add SportInfo support for CBASK_AssistsXML.dtd. --- diff --git a/doc/man1/htsn-import.1 b/doc/man1/htsn-import.1 index a583ff9..9bc682a 100644 --- a/doc/man1/htsn-import.1 +++ b/doc/man1/htsn-import.1 @@ -112,6 +112,8 @@ SportInfo CBASK_3PPctXML.dtd .IP \[bu] Cbask_All_Tourn_Teams_XML.dtd +.IP \[bu] +CBASK_AssistsXML.dtd .RE .P The GameInfo and SportInfo types do not have their own top-level diff --git a/schema/CBASK_AssistsXML.dtd b/schema/CBASK_AssistsXML.dtd new file mode 100644 index 0000000..fe064aa --- /dev/null +++ b/schema/CBASK_AssistsXML.dtd @@ -0,0 +1,38 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/schemagen/CBASK_AssistsXML/CBASK_AssistsXML.xml b/schemagen/CBASK_AssistsXML/CBASK_AssistsXML.xml new file mode 100644 index 0000000..17abbfa --- /dev/null +++ b/schemagen/CBASK_AssistsXML/CBASK_AssistsXML.xml @@ -0,0 +1,465 @@ + + + +17 +AEX%ASSISTS-LEADERS +Statistics +CBASK +2002-2003 Men's NCAA Basketball Top 25 Assist Leaders ++1 +Z.Towe +Central Methodist +1 +35:00 +10 +10.0 +1 +1.0 +9 +9.0 + ++2 +R.Kohn +South Florida +2 +31:00 +20 +10.0 +1 +0.5 +23 +11.5 + ++3 +R.Little +Va Military +3 +32:40 +28 +9.3 +16 +5.3 +14 +4.7 + ++4 +J.Holman +Wichita State +2 +31:00 +18 +9.0 +9 +4.5 +14 +7.0 + ++5 +M.Bailey +Ill-Chicago +3 +37:40 +27 +9.0 +12 +4.0 +49 +16.3 + ++6 +S.Blake +Maryland +3 +27:40 +26 +8.7 +13 +4.3 +22 +7.3 + ++ +C.Duhon +Duke +3 +32:40 +26 +8.7 +8 +2.7 +40 +13.3 + ++7 +M.Whitaker +Fair-Dickinson +2 +32:30 +17 +8.5 +3 +1.5 +18 +9.0 + ++8 +L.Ridnour +Oregon +3 +33:00 +25 +8.3 +9 +3.0 +64 +21.3 + ++9 +E.Scott +Clemson +2 +36:30 +16 +8.0 +4 +2.0 +33 +16.5 + ++10 +A.Barrett +Seton Hall +1 +32:00 +8 +8.0 +1 +1.0 +14 +14.0 + ++11 +T.Thompson +George Washington +3 +31:20 +24 +8.0 +13 +4.3 +29 +9.7 + ++12 +D.Hawkins +Francis Marion +1 +34:00 +8 +8.0 +8 +8.0 +9 +9.0 + ++13 +B.Knight +Pittsburgh +3 +30:00 +23 +7.7 +11 +3.7 +34 +11.3 + ++ +M.Sykes +Morehead State +3 +27:00 +23 +7.7 +5 +1.7 +28 +9.3 + ++14 +J.Lucas +Baylor +2 +35:30 +15 +7.5 +5 +2.5 +29 +14.5 + ++ +T.Barnes +Iowa State +2 +35:00 +15 +7.5 +0 +0.0 +25 +12.5 + ++ +D.Haynes +Kent State +2 +26:00 +15 +7.5 +7 +3.5 +14 +7.0 + ++15 +C.Eidson +South Carolina +3 +33:00 +22 +7.3 +10 +3.3 +60 +20.0 + ++ +K.Mims +Quinnipiac +3 +35:40 +22 +7.3 +5 +1.7 +28 +9.3 + ++ +J.Jack +Georgia Tech +3 +29:20 +22 +7.3 +11 +3.7 +35 +11.7 + ++ +J.Spencer-Gardner +Oral Roberts +3 +32:00 +22 +7.3 +4 +1.3 +37 +12.3 + ++16 +H.Smith +Rhode Island +3 +31:40 +21 +7.0 +4 +1.3 +13 +4.3 + ++17 +R.Felton +North Carolina +5 +33:12 +35 +7.0 +17 +3.4 +46 +9.2 + ++18 +D.McGrath +Providence +3 +33:00 +21 +7.0 +5 +1.7 +17 +5.7 + ++19 +A.Griffin +CS-Monterey +1 +37:00 +7 +7.0 +5 +5.0 +19 +19.0 + ++20 +M.Slattery +Delaware +2 +31:00 +14 +7.0 +8 +4.0 +16 +8.0 + ++ +R.Iversen +Delaware +2 +29:00 +14 +7.0 +1 +0.5 +24 +12.0 + ++ +C.Bozeman +U-C-L-A +2 +38:00 +14 +7.0 +4 +2.0 +24 +12.0 + ++ +I.Jefferson +Hampton +2 +24:00 +14 +7.0 +9 +4.5 +9 +4.5 + ++21 +T.Ford +Texas +3 +29:20 +21 +7.0 +18 +6.0 +36 +12.0 + ++22 +J.Meade +Holy Cross +4 +31:45 +28 +7.0 +9 +2.3 +32 +8.0 + ++23 +T.Scott +Southern Univ +2 +33:00 +14 +7.0 +7 +3.5 +7 +3.5 + ++24 +J.Faulknor +Bradley +1 +32:00 +7 +7.0 +3 +3.0 +0 +0.0 + ++25 +M.Wright +Marshall +2 +31:30 +14 +7.0 +2 +1.0 +17 +8.5 + + December 2, 2002, at 02:33 PM ET + diff --git a/src/TSN/XML/SportInfo.hs b/src/TSN/XML/SportInfo.hs index ec9a8f8..2f93f7b 100644 --- a/src/TSN/XML/SportInfo.hs +++ b/src/TSN/XML/SportInfo.hs @@ -68,7 +68,7 @@ dtds :: [String] dtds = [ "CBASK_3PPctXML.dtd", "Cbask_All_Tourn_Teams_XML.dtd", - "CBASK_AssistsXML.dtd", -- no dtd + "CBASK_AssistsXML.dtd", "Cbask_Awards_XML.dtd", -- no dtd "CBASK_BlocksXML.dtd", -- no dtd "CBask_BlocksXML.dtd", -- no dtd @@ -319,7 +319,9 @@ sportinfo_tests = sportinfo_test_files :: [FilePath] sportinfo_test_files = [ "test/xml/sportinfo/CBASK_3PPctXML.xml", - "test/xml/sportinfo/Cbask_All_Tourn_Teams_XML.xml" ] + "test/xml/sportinfo/Cbask_All_Tourn_Teams_XML.xml", + "test/xml/sportinfo/CBASK_AssistsXML.xml" + ] diff --git a/test/xml/sportinfo/CBASK_AssistsXML.dtd b/test/xml/sportinfo/CBASK_AssistsXML.dtd new file mode 100644 index 0000000..fe064aa --- /dev/null +++ b/test/xml/sportinfo/CBASK_AssistsXML.dtd @@ -0,0 +1,38 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/test/xml/sportinfo/CBASK_AssistsXML.xml b/test/xml/sportinfo/CBASK_AssistsXML.xml new file mode 100644 index 0000000..17abbfa --- /dev/null +++ b/test/xml/sportinfo/CBASK_AssistsXML.xml @@ -0,0 +1,465 @@ + + + +17 +AEX%ASSISTS-LEADERS +Statistics +CBASK +2002-2003 Men's NCAA Basketball Top 25 Assist Leaders ++1 +Z.Towe +Central Methodist +1 +35:00 +10 +10.0 +1 +1.0 +9 +9.0 + ++2 +R.Kohn +South Florida +2 +31:00 +20 +10.0 +1 +0.5 +23 +11.5 + ++3 +R.Little +Va Military +3 +32:40 +28 +9.3 +16 +5.3 +14 +4.7 + ++4 +J.Holman +Wichita State +2 +31:00 +18 +9.0 +9 +4.5 +14 +7.0 + ++5 +M.Bailey +Ill-Chicago +3 +37:40 +27 +9.0 +12 +4.0 +49 +16.3 + ++6 +S.Blake +Maryland +3 +27:40 +26 +8.7 +13 +4.3 +22 +7.3 + ++ +C.Duhon +Duke +3 +32:40 +26 +8.7 +8 +2.7 +40 +13.3 + ++7 +M.Whitaker +Fair-Dickinson +2 +32:30 +17 +8.5 +3 +1.5 +18 +9.0 + ++8 +L.Ridnour +Oregon +3 +33:00 +25 +8.3 +9 +3.0 +64 +21.3 + ++9 +E.Scott +Clemson +2 +36:30 +16 +8.0 +4 +2.0 +33 +16.5 + ++10 +A.Barrett +Seton Hall +1 +32:00 +8 +8.0 +1 +1.0 +14 +14.0 + ++11 +T.Thompson +George Washington +3 +31:20 +24 +8.0 +13 +4.3 +29 +9.7 + ++12 +D.Hawkins +Francis Marion +1 +34:00 +8 +8.0 +8 +8.0 +9 +9.0 + ++13 +B.Knight +Pittsburgh +3 +30:00 +23 +7.7 +11 +3.7 +34 +11.3 + ++ +M.Sykes +Morehead State +3 +27:00 +23 +7.7 +5 +1.7 +28 +9.3 + ++14 +J.Lucas +Baylor +2 +35:30 +15 +7.5 +5 +2.5 +29 +14.5 + ++ +T.Barnes +Iowa State +2 +35:00 +15 +7.5 +0 +0.0 +25 +12.5 + ++ +D.Haynes +Kent State +2 +26:00 +15 +7.5 +7 +3.5 +14 +7.0 + ++15 +C.Eidson +South Carolina +3 +33:00 +22 +7.3 +10 +3.3 +60 +20.0 + ++ +K.Mims +Quinnipiac +3 +35:40 +22 +7.3 +5 +1.7 +28 +9.3 + ++ +J.Jack +Georgia Tech +3 +29:20 +22 +7.3 +11 +3.7 +35 +11.7 + ++ +J.Spencer-Gardner +Oral Roberts +3 +32:00 +22 +7.3 +4 +1.3 +37 +12.3 + ++16 +H.Smith +Rhode Island +3 +31:40 +21 +7.0 +4 +1.3 +13 +4.3 + ++17 +R.Felton +North Carolina +5 +33:12 +35 +7.0 +17 +3.4 +46 +9.2 + ++18 +D.McGrath +Providence +3 +33:00 +21 +7.0 +5 +1.7 +17 +5.7 + ++19 +A.Griffin +CS-Monterey +1 +37:00 +7 +7.0 +5 +5.0 +19 +19.0 + ++20 +M.Slattery +Delaware +2 +31:00 +14 +7.0 +8 +4.0 +16 +8.0 + ++ +R.Iversen +Delaware +2 +29:00 +14 +7.0 +1 +0.5 +24 +12.0 + ++ +C.Bozeman +U-C-L-A +2 +38:00 +14 +7.0 +4 +2.0 +24 +12.0 + ++ +I.Jefferson +Hampton +2 +24:00 +14 +7.0 +9 +4.5 +9 +4.5 + ++21 +T.Ford +Texas +3 +29:20 +21 +7.0 +18 +6.0 +36 +12.0 + ++22 +J.Meade +Holy Cross +4 +31:45 +28 +7.0 +9 +2.3 +32 +8.0 + ++23 +T.Scott +Southern Univ +2 +33:00 +14 +7.0 +7 +3.5 +7 +3.5 + ++24 +J.Faulknor +Bradley +1 +32:00 +7 +7.0 +3 +3.0 +0 +0.0 + ++25 +M.Wright +Marshall +2 +31:30 +14 +7.0 +2 +1.0 +17 +8.5 + + December 2, 2002, at 02:33 PM ET +