From: Michael Orlitzky Date: Wed, 31 Dec 2014 19:02:48 +0000 (-0500) Subject: Add SportInfo support for Cbask_Indv_Shooting_XML.dtd. X-Git-Tag: 0.2.1~40 X-Git-Url: https://gitweb.michael.orlitzky.com/?a=commitdiff_plain;h=6b8d64cbe8094ea450cddc45362987ab36d4d82a;p=dead%2Fhtsn-import.git Add SportInfo support for Cbask_Indv_Shooting_XML.dtd. --- diff --git a/doc/TODO b/doc/TODO index db45e5e..88cfee0 100644 --- a/doc/TODO +++ b/doc/TODO @@ -7,7 +7,6 @@ 3. We have DTDs but no sample XML for the following SportInfo types, which have therefore been left unimplmented for now: - * Cbask_Indv_Shooting_XML.dtd * CBASK_StealsXML.dtd * Cbask_Team_Scoring_Rebound_Margin_XML.dtd * Cbask_Team_Scoring_XML.dtd diff --git a/doc/man1/htsn-import.1 b/doc/man1/htsn-import.1 index f0ce47c..92a7dbc 100644 --- a/doc/man1/htsn-import.1 +++ b/doc/man1/htsn-import.1 @@ -734,6 +734,8 @@ Cbask_Indv_No_Avg_XML .IP \[bu] Cbask_Indv_Scoring_XML.dtd .IP \[bu] +Cbask_Indv_Shooting_XML.dtd +.IP \[bu] CBASK_MinutesXML.dtd .IP \[bu] Cbask_Polls_XML.dtd diff --git a/htsn-import.cabal b/htsn-import.cabal index ca18984..e47bfdf 100644 --- a/htsn-import.cabal +++ b/htsn-import.cabal @@ -32,6 +32,7 @@ extra-source-files: schemagen/CBASK_FTPctXML/*.xml schemagen/Cbask_Indv_No_Avg_XML/*.xml schemagen/Cbask_Indv_Scoring_XML/*.xml + schemagen/Cbask_Indv_Shooting_XML/*.xml schemagen/CBASK_Lineup_XML/*.xml schemagen/CBASK_MinutesXML/*.xml schemagen/Cbask_Polls_XML/*.xml diff --git a/schema/Cbask_Indv_Shooting_XML.dtd b/schema/Cbask_Indv_Shooting_XML.dtd new file mode 100644 index 0000000..1504bf9 --- /dev/null +++ b/schema/Cbask_Indv_Shooting_XML.dtd @@ -0,0 +1,16 @@ + + + + + + + + + + + + + + + + diff --git a/schemagen/Cbask_Indv_Shooting_XML/22413929.xml b/schemagen/Cbask_Indv_Shooting_XML/22413929.xml new file mode 100644 index 0000000..835bdb9 --- /dev/null +++ b/schemagen/Cbask_Indv_Shooting_XML/22413929.xml @@ -0,0 +1 @@ + 22413929 AEX%NCAA-FGPCT Statistics CBASK 2014-2015 NCAA Division I Men's Basketball FG Percentage Statistics Fr 4 21 25 84.0 Sr 4 20 24 83.3 Fr 7 35 44 79.5 Fr 4 20 26 76.9 Sr 7 45 62 72.6 Jr 6 34 47 72.3 Jr 7 42 60 70.0 So 5 25 36 69.4 Jr 5 28 41 68.3 Sr 7 45 66 68.2 Jr 7 58 86 67.4 Jr 5 30 45 66.7 Sr 5 46 70 65.7 Fr 6 32 49 65.3 So 8 41 63 65.1 Sr 7 39 60 65.0 Sr 7 38 59 64.4 Sr 7 38 59 64.4 Sr 5 25 39 64.1 So 3 23 36 63.9 So 8 44 69 63.8 Fr 7 56 88 63.6 Jr 6 35 55 63.6 Jr 7 40 63 63.5 So 6 38 60 63.3 Sr 7 38 60 63.3 So 7 60 95 63.2 Sr 7 40 64 62.5 Sr 7 41 66 62.1 Sr 4 26 42 61.9 So 6 32 52 61.5 Sr 5 25 41 61.0 Sr 6 31 51 60.8 Jr 6 34 56 60.7 Sr 7 37 61 60.7 Jr 6 40 66 60.6 So 7 48 80 60.0 Sr 6 30 50 60.0 So 8 55 92 59.8 Fr 7 40 67 59.7 Jr 6 34 57 59.6 Jr 5 28 47 59.6 Sr 7 45 76 59.2 Sr 7 45 76 59.2 Jr 8 52 88 59.1 So 9 50 85 58.8 Sr 7 37 63 58.7 Fr 6 31 53 58.5 So 6 38 65 58.5 Sr 7 36 62 58.1 Sr 7 40 69 58.0 Sr 8 44 76 57.9 Jr 6 48 83 57.8 Jr 7 37 64 57.8 Jr 7 45 78 57.7 Sr 5 27 47 57.4 So 7 39 68 57.4 So 7 40 70 57.1 Jr 6 32 56 57.1 Fr 4 24 42 57.1 Sr 7 41 72 56.9 Sr 6 37 65 56.9 Sr 6 37 65 56.9 Jr 6 42 74 56.8 Sr 5 38 67 56.7 Sr 6 38 67 56.7 Sr 7 43 76 56.6 Jr 5 26 46 56.5 Sr 6 35 62 56.5 Sr 4 22 39 56.4 Jr 4 22 39 56.4 Sr 7 45 80 56.3 Sr 5 27 48 56.3 Sr 7 41 73 56.2 So 6 32 57 56.1 Jr 6 32 57 56.1 Jr 5 32 57 56.1 So 6 47 84 56.0 Fr 7 39 70 55.7 Sr 8 49 88 55.7 Sr 7 40 72 55.6 Sr 4 20 36 55.6 Jr 8 56 101 55.4 Sr 5 31 56 55.4 Jr 5 37 67 55.2 So 5 27 49 55.1 Jr 6 44 80 55.0 Fr 5 28 51 54.9 Jr 3 18 33 54.5 So 7 37 68 54.4 Jr 7 38 70 54.3 So 7 38 70 54.3 Sr 6 45 83 54.2 Jr 7 39 72 54.2 Sr 8 40 74 54.1 Sr 3 21 39 53.8 Sr 6 37 69 53.6 Jr 6 38 71 53.5 Sr 6 31 58 53.4 Jr 7 39 73 53.4 December 3, 2014, at 03:06 PM ET \ No newline at end of file diff --git a/src/TSN/XML/SportInfo.hs b/src/TSN/XML/SportInfo.hs index f370291..6403ebc 100644 --- a/src/TSN/XML/SportInfo.hs +++ b/src/TSN/XML/SportInfo.hs @@ -75,6 +75,7 @@ dtds = "CBASK_FTPctXML.dtd", "Cbask_Indv_No_Avg_XML.dtd", "Cbask_Indv_Scoring_XML.dtd", + "Cbask_Indv_Shooting_XML.dtd", "CBASK_MinutesXML.dtd", "Cbask_Polls_XML.dtd", "CBASK_ReboundsXML.dtd", diff --git a/test/xml/sportinfo/Cbask_Indv_Shooting_XML.dtd b/test/xml/sportinfo/Cbask_Indv_Shooting_XML.dtd new file mode 100644 index 0000000..1504bf9 --- /dev/null +++ b/test/xml/sportinfo/Cbask_Indv_Shooting_XML.dtd @@ -0,0 +1,16 @@ + + + + + + + + + + + + + + + + diff --git a/test/xml/sportinfo/Cbask_Indv_Shooting_XML.xml b/test/xml/sportinfo/Cbask_Indv_Shooting_XML.xml new file mode 100644 index 0000000..835bdb9 --- /dev/null +++ b/test/xml/sportinfo/Cbask_Indv_Shooting_XML.xml @@ -0,0 +1 @@ + 22413929 AEX%NCAA-FGPCT Statistics CBASK 2014-2015 NCAA Division I Men's Basketball FG Percentage Statistics Fr 4 21 25 84.0 Sr 4 20 24 83.3 Fr 7 35 44 79.5 Fr 4 20 26 76.9 Sr 7 45 62 72.6 Jr 6 34 47 72.3 Jr 7 42 60 70.0 So 5 25 36 69.4 Jr 5 28 41 68.3 Sr 7 45 66 68.2 Jr 7 58 86 67.4 Jr 5 30 45 66.7 Sr 5 46 70 65.7 Fr 6 32 49 65.3 So 8 41 63 65.1 Sr 7 39 60 65.0 Sr 7 38 59 64.4 Sr 7 38 59 64.4 Sr 5 25 39 64.1 So 3 23 36 63.9 So 8 44 69 63.8 Fr 7 56 88 63.6 Jr 6 35 55 63.6 Jr 7 40 63 63.5 So 6 38 60 63.3 Sr 7 38 60 63.3 So 7 60 95 63.2 Sr 7 40 64 62.5 Sr 7 41 66 62.1 Sr 4 26 42 61.9 So 6 32 52 61.5 Sr 5 25 41 61.0 Sr 6 31 51 60.8 Jr 6 34 56 60.7 Sr 7 37 61 60.7 Jr 6 40 66 60.6 So 7 48 80 60.0 Sr 6 30 50 60.0 So 8 55 92 59.8 Fr 7 40 67 59.7 Jr 6 34 57 59.6 Jr 5 28 47 59.6 Sr 7 45 76 59.2 Sr 7 45 76 59.2 Jr 8 52 88 59.1 So 9 50 85 58.8 Sr 7 37 63 58.7 Fr 6 31 53 58.5 So 6 38 65 58.5 Sr 7 36 62 58.1 Sr 7 40 69 58.0 Sr 8 44 76 57.9 Jr 6 48 83 57.8 Jr 7 37 64 57.8 Jr 7 45 78 57.7 Sr 5 27 47 57.4 So 7 39 68 57.4 So 7 40 70 57.1 Jr 6 32 56 57.1 Fr 4 24 42 57.1 Sr 7 41 72 56.9 Sr 6 37 65 56.9 Sr 6 37 65 56.9 Jr 6 42 74 56.8 Sr 5 38 67 56.7 Sr 6 38 67 56.7 Sr 7 43 76 56.6 Jr 5 26 46 56.5 Sr 6 35 62 56.5 Sr 4 22 39 56.4 Jr 4 22 39 56.4 Sr 7 45 80 56.3 Sr 5 27 48 56.3 Sr 7 41 73 56.2 So 6 32 57 56.1 Jr 6 32 57 56.1 Jr 5 32 57 56.1 So 6 47 84 56.0 Fr 7 39 70 55.7 Sr 8 49 88 55.7 Sr 7 40 72 55.6 Sr 4 20 36 55.6 Jr 8 56 101 55.4 Sr 5 31 56 55.4 Jr 5 37 67 55.2 So 5 27 49 55.1 Jr 6 44 80 55.0 Fr 5 28 51 54.9 Jr 3 18 33 54.5 So 7 37 68 54.4 Jr 7 38 70 54.3 So 7 38 70 54.3 Sr 6 45 83 54.2 Jr 7 39 72 54.2 Sr 8 40 74 54.1 Sr 3 21 39 53.8 Sr 6 37 69 53.6 Jr 6 38 71 53.5 Sr 6 31 58 53.4 Jr 7 39 73 53.4 December 3, 2014, at 03:06 PM ET \ No newline at end of file