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

index 925ca144cf2617fb03cf68bb63110be4eb08c709..2b3d243a47738814067b4135a6ec381b2d7d8108 100644 (file)
@@ -334,6 +334,8 @@ NFLTopPerformanceXML.dtd
 NFLTotalYardageXML.dtd
 .IP \[bu]
 NFL_KickingLeaders_XML.dtd
+.IP \[bu]
+NFL_NBA_Draft_XML.dtd
 .RE
 .P
 The GameInfo and SportInfo types do not have their own top-level
diff --git a/schema/NFL_NBA_Draft_XML.dtd b/schema/NFL_NBA_Draft_XML.dtd
new file mode 100644 (file)
index 0000000..8b89231
--- /dev/null
@@ -0,0 +1,36 @@
+<!ELEMENT message  (XML_File_ID , heading , category , sport , Title , PlayerName , Team , Round , Selection , Position , School , Year , Height , Weight , High_School , Notes , 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 PlayerName  (#PCDATA )>\r
+\r
+<!ELEMENT Team EMPTY>\r
+\r
+<!ELEMENT Round EMPTY>\r
+\r
+<!ELEMENT Selection EMPTY>\r
+\r
+<!ELEMENT Position  (#PCDATA )>\r
+\r
+<!ELEMENT School  (#PCDATA )>\r
+\r
+<!ELEMENT Year  (#PCDATA )>\r
+\r
+<!ELEMENT Height  (#PCDATA )>\r
+\r
+<!ELEMENT Weight  (#PCDATA )>\r
+\r
+<!ELEMENT High_School  (#PCDATA )>\r
+\r
+<!ELEMENT Notes  (#PCDATA )>\r
+\r
+<!ELEMENT time_stamp  (#PCDATA )>\r
+\r
diff --git a/schemagen/NFL_NBA_Draft_XML/NFL_NBA_Draft_XML.xml b/schemagen/NFL_NBA_Draft_XML/NFL_NBA_Draft_XML.xml
new file mode 100644 (file)
index 0000000..1a157a7
--- /dev/null
@@ -0,0 +1,39 @@
+<?xml version="1.0" standalone="no" ?>\r
+<!DOCTYPE message PUBLIC "-//TSN//DTD Stats 1.0/EN" "NFL_NBA_Draft_XML.dtd">\r
+<message>\r
+<XML_File_ID>277</XML_File_ID>\r
+<heading>ABB%DRAFT-MCCLESKEY</heading>\r
+<category>Stats</category>\r
+<sport>NFL</sport>\r
+<Title>NFL Draft Profile - Donnie McCleskey</Title>\r
+<PlayerName>Donnie McCleskey</PlayerName>\r
+<Team></Team>\r
+<Round></Round>\r
+<Selection></Selection>\r
+<Position>S</Position>\r
+<School>California</School>\r
+<Year>SR</Year>\r
+<Height>5-10</Height>\r
+<Weight>190</Weight>\r
+<High_School>Bishop Amat (Chino Hills, California)</High_School>\r
+<Notes>\r
+Named Second Team All-Pac-10 Conference as a senior in 2005 as he placed\r
+second on California's defense with 62.5 tackles, of which 52 stops were of\r
+the solo variety...One of two players to have forced a pair of fumbles this\r
+past season, also made eight and a half stops behind the line of scrimmage\r
+and was among the team leaders with three sacks...Fought through a shoulder\r
+injury for much of the 2004 campaign, leaving him with a career-low 38\r
+tackles, of which three were TFLs...Earned All-Pac-10 First Team honors in\r
+2003 when he broke California's defensive back record for tackles with 102\r
+stops, leading the  entire conference at the position...McCleskey also led\r
+all Pac-10 DBs in sacks and tackles for loss with 5.5 and 12,\r
+respectively...Entered his sophomore campaign as the top returning tackler\r
+for the Golden Bears after he recorded 45 stops in 2002...Is tough and\r
+aggressive at the safety position and plays with his head, rarely making bad\r
+decisions that he can't make up for athletically...Only negative seems to be\r
+his size, but is a smart player that has compensated during his collegiate\r
+career.\r
+\r
+</Notes>\r
+<time_stamp>April 7, 2006, at 12:10 PM ET</time_stamp>\r
+</message>\r
index b456e6f5b4998964fd47fd40b5e21b7a128f267d..434db020183e19b9bd5bdaa4fe94a05429b74980 100644 (file)
@@ -192,9 +192,9 @@ dtds =
     "NFLTopPerformanceXML.dtd",
     "NFLTopPuntReturnXML.dtd", -- no xml
     "NFLTotalYardageXML.dtd",
-    "NFLYardsXML.dtd", -- no dtd
+    "NFLYardsXML.dtd", -- no xml
     "NFL_KickingLeaders_XML.dtd",
-    "NFL_NBA_Draft_XML.dtd", -- no dtd
+    "NFL_NBA_Draft_XML.dtd",
     "NFL_PuntingLeaders_XML.dtd", -- no dtd
     "NFL_Roster_XML.dtd", -- no dtd
     "NFL_Team_Stats_XML.dtd", -- no dtd
@@ -428,7 +428,8 @@ sport_info_test_files =
     "NFLTeamRankingsXML.xml",
     "NFLTopPerformanceXML.xml",
     "NFLTotalYardageXML.xml",
-    "NFL_KickingLeaders_XML.xml"
+    "NFL_KickingLeaders_XML.xml",
+    "NFL_NBA_Draft_XML.xml"
   ]
 
 
diff --git a/test/xml/sportinfo/NFL_NBA_Draft_XML.dtd b/test/xml/sportinfo/NFL_NBA_Draft_XML.dtd
new file mode 100644 (file)
index 0000000..8b89231
--- /dev/null
@@ -0,0 +1,36 @@
+<!ELEMENT message  (XML_File_ID , heading , category , sport , Title , PlayerName , Team , Round , Selection , Position , School , Year , Height , Weight , High_School , Notes , 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 PlayerName  (#PCDATA )>\r
+\r
+<!ELEMENT Team EMPTY>\r
+\r
+<!ELEMENT Round EMPTY>\r
+\r
+<!ELEMENT Selection EMPTY>\r
+\r
+<!ELEMENT Position  (#PCDATA )>\r
+\r
+<!ELEMENT School  (#PCDATA )>\r
+\r
+<!ELEMENT Year  (#PCDATA )>\r
+\r
+<!ELEMENT Height  (#PCDATA )>\r
+\r
+<!ELEMENT Weight  (#PCDATA )>\r
+\r
+<!ELEMENT High_School  (#PCDATA )>\r
+\r
+<!ELEMENT Notes  (#PCDATA )>\r
+\r
+<!ELEMENT time_stamp  (#PCDATA )>\r
+\r
diff --git a/test/xml/sportinfo/NFL_NBA_Draft_XML.xml b/test/xml/sportinfo/NFL_NBA_Draft_XML.xml
new file mode 100644 (file)
index 0000000..1a157a7
--- /dev/null
@@ -0,0 +1,39 @@
+<?xml version="1.0" standalone="no" ?>\r
+<!DOCTYPE message PUBLIC "-//TSN//DTD Stats 1.0/EN" "NFL_NBA_Draft_XML.dtd">\r
+<message>\r
+<XML_File_ID>277</XML_File_ID>\r
+<heading>ABB%DRAFT-MCCLESKEY</heading>\r
+<category>Stats</category>\r
+<sport>NFL</sport>\r
+<Title>NFL Draft Profile - Donnie McCleskey</Title>\r
+<PlayerName>Donnie McCleskey</PlayerName>\r
+<Team></Team>\r
+<Round></Round>\r
+<Selection></Selection>\r
+<Position>S</Position>\r
+<School>California</School>\r
+<Year>SR</Year>\r
+<Height>5-10</Height>\r
+<Weight>190</Weight>\r
+<High_School>Bishop Amat (Chino Hills, California)</High_School>\r
+<Notes>\r
+Named Second Team All-Pac-10 Conference as a senior in 2005 as he placed\r
+second on California's defense with 62.5 tackles, of which 52 stops were of\r
+the solo variety...One of two players to have forced a pair of fumbles this\r
+past season, also made eight and a half stops behind the line of scrimmage\r
+and was among the team leaders with three sacks...Fought through a shoulder\r
+injury for much of the 2004 campaign, leaving him with a career-low 38\r
+tackles, of which three were TFLs...Earned All-Pac-10 First Team honors in\r
+2003 when he broke California's defensive back record for tackles with 102\r
+stops, leading the  entire conference at the position...McCleskey also led\r
+all Pac-10 DBs in sacks and tackles for loss with 5.5 and 12,\r
+respectively...Entered his sophomore campaign as the top returning tackler\r
+for the Golden Bears after he recorded 45 stops in 2002...Is tough and\r
+aggressive at the safety position and plays with his head, rarely making bad\r
+decisions that he can't make up for athletically...Only negative seems to be\r
+his size, but is a smart player that has compensated during his collegiate\r
+career.\r
+\r
+</Notes>\r
+<time_stamp>April 7, 2006, at 12:10 PM ET</time_stamp>\r
+</message>\r