]> gitweb.michael.orlitzky.com - dead/htsn-import.git/commitdiff
Add SportInfo support for Cbask_Team_ThreePT_Made_XML.dtd.
authorMichael Orlitzky <michael@orlitzky.com>
Tue, 17 Jun 2014 03:18:14 +0000 (23:18 -0400)
committerMichael Orlitzky <michael@orlitzky.com>
Tue, 17 Jun 2014 03:18:14 +0000 (23:18 -0400)
doc/man1/htsn-import.1
schema/Cbask_Team_ThreePT_Made_XML.dtd [new file with mode: 0644]
schemagen/Cbask_Team_ThreePT_Made_XML/Cbask_Team_ThreePT_Made_XML.xml [new file with mode: 0644]
src/TSN/XML/SportInfo.hs
test/xml/sportinfo/Cbask_Team_ThreePT_Made_XML.dtd [new file with mode: 0644]
test/xml/sportinfo/Cbask_Team_ThreePT_Made_XML.xml [new file with mode: 0644]

index e99c6b809a9cd54740b7a16eb0e4bbc46b204eff..98a5596b2e9a2a9f7ac6c7248ce497b7bd5ec495 100644 (file)
@@ -144,6 +144,8 @@ Cbask_Polls_XML.dtd
 CBASK_ReboundsXML.dtd
 .IP \[bu]
 CBASK_ScoringLeadersXML.dtd
+.IP \[bu]
+Cbask_Team_ThreePT_Made_XML.dtd
 .RE
 .P
 The GameInfo and SportInfo types do not have their own top-level
diff --git a/schema/Cbask_Team_ThreePT_Made_XML.dtd b/schema/Cbask_Team_ThreePT_Made_XML.dtd
new file mode 100644 (file)
index 0000000..43ea0e1
--- /dev/null
@@ -0,0 +1,23 @@
+<!ELEMENT message  (XML_File_ID, heading , category , sport , title , Listing+ , time_stamp )>\r
+\r
+<!ELEMENT XML_File_ID  (#PCDATA )>\r
+\r
+<!ELEMENT heading  (#PCDATA )>\r
+\r
+<!ELEMENT category  (#PCDATA )>\r
+\r
+<!ELEMENT sport  (#PCDATA )>\r
+\r
+<!ELEMENT title  (#PCDATA )>\r
+\r
+<!ELEMENT Listing  (Games_Played , ThreePT_Made , Average )>\r
+<!ATTLIST Listing  Team CDATA  #REQUIRED\r
+                   Rank CDATA  #REQUIRED >\r
+<!ELEMENT Games_Played  (#PCDATA )>\r
+\r
+<!ELEMENT ThreePT_Made  (#PCDATA )>\r
+\r
+<!ELEMENT Average  (#PCDATA )>\r
+\r
+<!ELEMENT time_stamp  (#PCDATA )>\r
+\r
diff --git a/schemagen/Cbask_Team_ThreePT_Made_XML/Cbask_Team_ThreePT_Made_XML.xml b/schemagen/Cbask_Team_ThreePT_Made_XML/Cbask_Team_ThreePT_Made_XML.xml
new file mode 100644 (file)
index 0000000..7c175a7
--- /dev/null
@@ -0,0 +1,167 @@
+<?xml version="1.0" standalone="no" ?>\r
+<!DOCTYPE message PUBLIC "-//TSN//DTD Statistics 1.0/EN" "Cbask_Team_ThreePT_Made_XML.dtd">\r
+<message>\r
+<XML_File_ID>962691117</XML_File_ID>\r
+<heading>AEX%NCAA-TEAM-3PT-FGMADE</heading>\r
+<category>Statistics</category>\r
+<sport>CBASK</sport>\r
+<title>\r
+NCAA Division I Basketball Team 3PT Field Goal Made Statistics\r
+</title>\r
+<Listing Rank="1" Team="St. Bonaventure">\r
+<Games_Played>20</Games_Played>\r
+<ThreePT_Made>219</ThreePT_Made>\r
+<Average>11.0</Average>\r
+</Listing>\r
+<Listing Rank="2" Team="Dartmouth">\r
+<Games_Played>19</Games_Played>\r
+<ThreePT_Made>185</ThreePT_Made>\r
+<Average>9.7</Average>\r
+</Listing>\r
+<Listing Rank="3" Team="Ball St.">\r
+<Games_Played>21</Games_Played>\r
+<ThreePT_Made>201</ThreePT_Made>\r
+<Average>9.6</Average>\r
+</Listing>\r
+<Listing Rank="" Team="Baylor">\r
+<Games_Played>21</Games_Played>\r
+<ThreePT_Made>201</ThreePT_Made>\r
+<Average>9.6</Average>\r
+</Listing>\r
+<Listing Rank="5" Team="Western Ky.">\r
+<Games_Played>23</Games_Played>\r
+<ThreePT_Made>220</ThreePT_Made>\r
+<Average>9.6</Average>\r
+</Listing>\r
+<Listing Rank="6" Team="Vanderbilt">\r
+<Games_Played>21</Games_Played>\r
+<ThreePT_Made>197</ThreePT_Made>\r
+<Average>9.4</Average>\r
+</Listing>\r
+<Listing Rank="7" Team="Belmont">\r
+<Games_Played>21</Games_Played>\r
+<ThreePT_Made>195</ThreePT_Made>\r
+<Average>9.3</Average>\r
+</Listing>\r
+<Listing Rank="8" Team="Nebraska">\r
+<Games_Played>19</Games_Played>\r
+<ThreePT_Made>175</ThreePT_Made>\r
+<Average>9.2</Average>\r
+</Listing>\r
+<Listing Rank="9" Team="Troy St.">\r
+<Games_Played>21</Games_Played>\r
+<ThreePT_Made>192</ThreePT_Made>\r
+<Average>9.1</Average>\r
+</Listing>\r
+<Listing Rank="10" Team="Temple">\r
+<Games_Played>20</Games_Played>\r
+<ThreePT_Made>179</ThreePT_Made>\r
+<Average>9.0</Average>\r
+</Listing>\r
+<Listing Rank="11" Team="Duke">\r
+<Games_Played>21</Games_Played>\r
+<ThreePT_Made>185</ThreePT_Made>\r
+<Average>8.8</Average>\r
+</Listing>\r
+<Listing Rank="12" Team="Missouri">\r
+<Games_Played>22</Games_Played>\r
+<ThreePT_Made>193</ThreePT_Made>\r
+<Average>8.8</Average>\r
+</Listing>\r
+<Listing Rank="13" Team="Pennsylvania">\r
+<Games_Played>20</Games_Played>\r
+<ThreePT_Made>174</ThreePT_Made>\r
+<Average>8.7</Average>\r
+</Listing>\r
+<Listing Rank="14" Team="Butler">\r
+<Games_Played>23</Games_Played>\r
+<ThreePT_Made>200</ThreePT_Made>\r
+<Average>8.7</Average>\r
+</Listing>\r
+<Listing Rank="15" Team="Wis.-Milwaukee">\r
+<Games_Played>22</Games_Played>\r
+<ThreePT_Made>190</ThreePT_Made>\r
+<Average>8.6</Average>\r
+</Listing>\r
+<Listing Rank="16" Team="Davidson">\r
+<Games_Played>21</Games_Played>\r
+<ThreePT_Made>181</ThreePT_Made>\r
+<Average>8.6</Average>\r
+</Listing>\r
+<Listing Rank="17" Team="Samford">\r
+<Games_Played>22</Games_Played>\r
+<ThreePT_Made>188</ThreePT_Made>\r
+<Average>8.5</Average>\r
+</Listing>\r
+<Listing Rank="18" Team="Pacific (Cal.)">\r
+<Games_Played>20</Games_Played>\r
+<ThreePT_Made>167</ThreePT_Made>\r
+<Average>8.4</Average>\r
+</Listing>\r
+<Listing Rank="19" Team="Georgia Tech">\r
+<Games_Played>22</Games_Played>\r
+<ThreePT_Made>183</ThreePT_Made>\r
+<Average>8.3</Average>\r
+</Listing>\r
+<Listing Rank="20" Team="Seton Hall">\r
+<Games_Played>21</Games_Played>\r
+<ThreePT_Made>174</ThreePT_Made>\r
+<Average>8.3</Average>\r
+</Listing>\r
+<Listing Rank="21" Team="Louisville">\r
+<Games_Played>20</Games_Played>\r
+<ThreePT_Made>165</ThreePT_Made>\r
+<Average>8.3</Average>\r
+</Listing>\r
+<Listing Rank="22" Team="Arkansas">\r
+<Games_Played>21</Games_Played>\r
+<ThreePT_Made>173</ThreePT_Made>\r
+<Average>8.2</Average>\r
+</Listing>\r
+<Listing Rank="23" Team="Marshall">\r
+<Games_Played>20</Games_Played>\r
+<ThreePT_Made>163</ThreePT_Made>\r
+<Average>8.2</Average>\r
+</Listing>\r
+<Listing Rank="24" Team="South Carolina">\r
+<Games_Played>21</Games_Played>\r
+<ThreePT_Made>171</ThreePT_Made>\r
+<Average>8.1</Average>\r
+</Listing>\r
+<Listing Rank="25" Team="IUPUI">\r
+<Games_Played>21</Games_Played>\r
+<ThreePT_Made>169</ThreePT_Made>\r
+<Average>8.0</Average>\r
+</Listing>\r
+<Listing Rank="26" Team="Valparaiso">\r
+<Games_Played>23</Games_Played>\r
+<ThreePT_Made>185</ThreePT_Made>\r
+<Average>8.0</Average>\r
+</Listing>\r
+<Listing Rank="27" Team="Portland">\r
+<Games_Played>22</Games_Played>\r
+<ThreePT_Made>176</ThreePT_Made>\r
+<Average>8.0</Average>\r
+</Listing>\r
+<Listing Rank="" Team="Drake">\r
+<Games_Played>21</Games_Played>\r
+<ThreePT_Made>168</ThreePT_Made>\r
+<Average>8.0</Average>\r
+</Listing>\r
+<Listing Rank="29" Team="Wright St.">\r
+<Games_Played>21</Games_Played>\r
+<ThreePT_Made>167</ThreePT_Made>\r
+<Average>8.0</Average>\r
+</Listing>\r
+<Listing Rank="30" Team="Charlotte">\r
+<Games_Played>20</Games_Played>\r
+<ThreePT_Made>159</ThreePT_Made>\r
+<Average>8.0</Average>\r
+</Listing>\r
+<Listing Rank="" Team="Portland St.">\r
+<Games_Played>20</Games_Played>\r
+<ThreePT_Made>159</ThreePT_Made>\r
+<Average>8.0</Average>\r
+</Listing>\r
+<time_stamp> February 12, 2002, at 04:10 PM ET </time_stamp>\r
+</message>\r
index 6080df4c1dafa08f847a405da9e8c40da95ee9a2..e8524bd72ff04c49635f25d22373dd6e6af96f41 100644 (file)
@@ -89,7 +89,7 @@ dtds =
     "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_Team_ThreePT_Made_XML.dtd", -- no dtd
+    "Cbask_Team_ThreePT_Made_XML.dtd",
     "Cbask_Team_ThreePT_PCT_XML.dtd", -- no dtd
     "Cbask_Team_Win_Pct_XML.dtd", -- no dtd
     "Cbask_Top_Twenty_Five_XML.dtd", -- no dtd
@@ -332,7 +332,8 @@ sport_info_test_files =
     "test/xml/sportinfo/CBASK_MinutesXML.xml",
     "test/xml/sportinfo/Cbask_Polls_XML.xml",
     "test/xml/sportinfo/CBASK_ReboundsXML.xml",
-    "test/xml/sportinfo/CBASK_ScoringLeadersXML.xml"
+    "test/xml/sportinfo/CBASK_ScoringLeadersXML.xml",
+    "test/xml/sportinfo/Cbask_Team_ThreePT_Made_XML.xml"
   ]
 
 
diff --git a/test/xml/sportinfo/Cbask_Team_ThreePT_Made_XML.dtd b/test/xml/sportinfo/Cbask_Team_ThreePT_Made_XML.dtd
new file mode 100644 (file)
index 0000000..43ea0e1
--- /dev/null
@@ -0,0 +1,23 @@
+<!ELEMENT message  (XML_File_ID, heading , category , sport , title , Listing+ , time_stamp )>\r
+\r
+<!ELEMENT XML_File_ID  (#PCDATA )>\r
+\r
+<!ELEMENT heading  (#PCDATA )>\r
+\r
+<!ELEMENT category  (#PCDATA )>\r
+\r
+<!ELEMENT sport  (#PCDATA )>\r
+\r
+<!ELEMENT title  (#PCDATA )>\r
+\r
+<!ELEMENT Listing  (Games_Played , ThreePT_Made , Average )>\r
+<!ATTLIST Listing  Team CDATA  #REQUIRED\r
+                   Rank CDATA  #REQUIRED >\r
+<!ELEMENT Games_Played  (#PCDATA )>\r
+\r
+<!ELEMENT ThreePT_Made  (#PCDATA )>\r
+\r
+<!ELEMENT Average  (#PCDATA )>\r
+\r
+<!ELEMENT time_stamp  (#PCDATA )>\r
+\r
diff --git a/test/xml/sportinfo/Cbask_Team_ThreePT_Made_XML.xml b/test/xml/sportinfo/Cbask_Team_ThreePT_Made_XML.xml
new file mode 100644 (file)
index 0000000..7c175a7
--- /dev/null
@@ -0,0 +1,167 @@
+<?xml version="1.0" standalone="no" ?>\r
+<!DOCTYPE message PUBLIC "-//TSN//DTD Statistics 1.0/EN" "Cbask_Team_ThreePT_Made_XML.dtd">\r
+<message>\r
+<XML_File_ID>962691117</XML_File_ID>\r
+<heading>AEX%NCAA-TEAM-3PT-FGMADE</heading>\r
+<category>Statistics</category>\r
+<sport>CBASK</sport>\r
+<title>\r
+NCAA Division I Basketball Team 3PT Field Goal Made Statistics\r
+</title>\r
+<Listing Rank="1" Team="St. Bonaventure">\r
+<Games_Played>20</Games_Played>\r
+<ThreePT_Made>219</ThreePT_Made>\r
+<Average>11.0</Average>\r
+</Listing>\r
+<Listing Rank="2" Team="Dartmouth">\r
+<Games_Played>19</Games_Played>\r
+<ThreePT_Made>185</ThreePT_Made>\r
+<Average>9.7</Average>\r
+</Listing>\r
+<Listing Rank="3" Team="Ball St.">\r
+<Games_Played>21</Games_Played>\r
+<ThreePT_Made>201</ThreePT_Made>\r
+<Average>9.6</Average>\r
+</Listing>\r
+<Listing Rank="" Team="Baylor">\r
+<Games_Played>21</Games_Played>\r
+<ThreePT_Made>201</ThreePT_Made>\r
+<Average>9.6</Average>\r
+</Listing>\r
+<Listing Rank="5" Team="Western Ky.">\r
+<Games_Played>23</Games_Played>\r
+<ThreePT_Made>220</ThreePT_Made>\r
+<Average>9.6</Average>\r
+</Listing>\r
+<Listing Rank="6" Team="Vanderbilt">\r
+<Games_Played>21</Games_Played>\r
+<ThreePT_Made>197</ThreePT_Made>\r
+<Average>9.4</Average>\r
+</Listing>\r
+<Listing Rank="7" Team="Belmont">\r
+<Games_Played>21</Games_Played>\r
+<ThreePT_Made>195</ThreePT_Made>\r
+<Average>9.3</Average>\r
+</Listing>\r
+<Listing Rank="8" Team="Nebraska">\r
+<Games_Played>19</Games_Played>\r
+<ThreePT_Made>175</ThreePT_Made>\r
+<Average>9.2</Average>\r
+</Listing>\r
+<Listing Rank="9" Team="Troy St.">\r
+<Games_Played>21</Games_Played>\r
+<ThreePT_Made>192</ThreePT_Made>\r
+<Average>9.1</Average>\r
+</Listing>\r
+<Listing Rank="10" Team="Temple">\r
+<Games_Played>20</Games_Played>\r
+<ThreePT_Made>179</ThreePT_Made>\r
+<Average>9.0</Average>\r
+</Listing>\r
+<Listing Rank="11" Team="Duke">\r
+<Games_Played>21</Games_Played>\r
+<ThreePT_Made>185</ThreePT_Made>\r
+<Average>8.8</Average>\r
+</Listing>\r
+<Listing Rank="12" Team="Missouri">\r
+<Games_Played>22</Games_Played>\r
+<ThreePT_Made>193</ThreePT_Made>\r
+<Average>8.8</Average>\r
+</Listing>\r
+<Listing Rank="13" Team="Pennsylvania">\r
+<Games_Played>20</Games_Played>\r
+<ThreePT_Made>174</ThreePT_Made>\r
+<Average>8.7</Average>\r
+</Listing>\r
+<Listing Rank="14" Team="Butler">\r
+<Games_Played>23</Games_Played>\r
+<ThreePT_Made>200</ThreePT_Made>\r
+<Average>8.7</Average>\r
+</Listing>\r
+<Listing Rank="15" Team="Wis.-Milwaukee">\r
+<Games_Played>22</Games_Played>\r
+<ThreePT_Made>190</ThreePT_Made>\r
+<Average>8.6</Average>\r
+</Listing>\r
+<Listing Rank="16" Team="Davidson">\r
+<Games_Played>21</Games_Played>\r
+<ThreePT_Made>181</ThreePT_Made>\r
+<Average>8.6</Average>\r
+</Listing>\r
+<Listing Rank="17" Team="Samford">\r
+<Games_Played>22</Games_Played>\r
+<ThreePT_Made>188</ThreePT_Made>\r
+<Average>8.5</Average>\r
+</Listing>\r
+<Listing Rank="18" Team="Pacific (Cal.)">\r
+<Games_Played>20</Games_Played>\r
+<ThreePT_Made>167</ThreePT_Made>\r
+<Average>8.4</Average>\r
+</Listing>\r
+<Listing Rank="19" Team="Georgia Tech">\r
+<Games_Played>22</Games_Played>\r
+<ThreePT_Made>183</ThreePT_Made>\r
+<Average>8.3</Average>\r
+</Listing>\r
+<Listing Rank="20" Team="Seton Hall">\r
+<Games_Played>21</Games_Played>\r
+<ThreePT_Made>174</ThreePT_Made>\r
+<Average>8.3</Average>\r
+</Listing>\r
+<Listing Rank="21" Team="Louisville">\r
+<Games_Played>20</Games_Played>\r
+<ThreePT_Made>165</ThreePT_Made>\r
+<Average>8.3</Average>\r
+</Listing>\r
+<Listing Rank="22" Team="Arkansas">\r
+<Games_Played>21</Games_Played>\r
+<ThreePT_Made>173</ThreePT_Made>\r
+<Average>8.2</Average>\r
+</Listing>\r
+<Listing Rank="23" Team="Marshall">\r
+<Games_Played>20</Games_Played>\r
+<ThreePT_Made>163</ThreePT_Made>\r
+<Average>8.2</Average>\r
+</Listing>\r
+<Listing Rank="24" Team="South Carolina">\r
+<Games_Played>21</Games_Played>\r
+<ThreePT_Made>171</ThreePT_Made>\r
+<Average>8.1</Average>\r
+</Listing>\r
+<Listing Rank="25" Team="IUPUI">\r
+<Games_Played>21</Games_Played>\r
+<ThreePT_Made>169</ThreePT_Made>\r
+<Average>8.0</Average>\r
+</Listing>\r
+<Listing Rank="26" Team="Valparaiso">\r
+<Games_Played>23</Games_Played>\r
+<ThreePT_Made>185</ThreePT_Made>\r
+<Average>8.0</Average>\r
+</Listing>\r
+<Listing Rank="27" Team="Portland">\r
+<Games_Played>22</Games_Played>\r
+<ThreePT_Made>176</ThreePT_Made>\r
+<Average>8.0</Average>\r
+</Listing>\r
+<Listing Rank="" Team="Drake">\r
+<Games_Played>21</Games_Played>\r
+<ThreePT_Made>168</ThreePT_Made>\r
+<Average>8.0</Average>\r
+</Listing>\r
+<Listing Rank="29" Team="Wright St.">\r
+<Games_Played>21</Games_Played>\r
+<ThreePT_Made>167</ThreePT_Made>\r
+<Average>8.0</Average>\r
+</Listing>\r
+<Listing Rank="30" Team="Charlotte">\r
+<Games_Played>20</Games_Played>\r
+<ThreePT_Made>159</ThreePT_Made>\r
+<Average>8.0</Average>\r
+</Listing>\r
+<Listing Rank="" Team="Portland St.">\r
+<Games_Played>20</Games_Played>\r
+<ThreePT_Made>159</ThreePT_Made>\r
+<Average>8.0</Average>\r
+</Listing>\r
+<time_stamp> February 12, 2002, at 04:10 PM ET </time_stamp>\r
+</message>\r