]> gitweb.michael.orlitzky.com - dead/htsn-import.git/commitdiff
Add SportInfo support for NFLTackleFFLeadersXML.dtd.
authorMichael Orlitzky <michael@orlitzky.com>
Thu, 6 Nov 2014 19:19:33 +0000 (14:19 -0500)
committerMichael Orlitzky <michael@orlitzky.com>
Thu, 6 Nov 2014 19:19:33 +0000 (14:19 -0500)
doc/TODO
htsn-import.cabal
schema/NFLTackleFFLeadersXML.dtd [new file with mode: 0644]
schemagen/NFLTackleFFLeadersXML/22129127.xml [new file with mode: 0644]
src/TSN/XML/SportInfo.hs
test/xml/sportinfo/NFLTackleFFLeadersXML.dtd [new file with mode: 0644]
test/xml/sportinfo/NFLTackleFFLeadersXML.xml [new file with mode: 0644]

index 902c655440ebcb2217427cec57c06c16a0326f58..96e4d1b2df563033f0521a71c5dac21c91becefc 100644 (file)
--- a/doc/TODO
+++ b/doc/TODO
@@ -13,7 +13,6 @@
    * Cbask_Team_Scoring_Rebound_Margin_XML.dtd
    * Cbask_Team_Scoring_XML.dtd
    * Cbask_Team_Shooting_Pct_XML.dtd
-   * NFLTackleFFLeadersXML.dtd
    * NFLTopKickoffReturnXML.dtd
    * NFLTopPuntReturnXML.dtd
    * NFLYardsXML.dtd
index 09ee09903e0993617c8d7a925f246af3098ccad8..7995b61e435a1552e71bddfd0fa0b0b91fa52603 100644 (file)
@@ -158,6 +158,7 @@ extra-source-files:
   schemagen/NFLRushingLeadersXML/*.xml
   schemagen/NFLSackLeadersXML/*.xml
   schemagen/nflstandxml/*.xml
+  schemagen/NFLTackleFFLeadersXML/*.xml
   schemagen/NFLTeamRankingsXML/*.xml
   schemagen/NFL_Team_Stats_XML/*.xml
   schemagen/NFLTopPerformanceXML/*.xml
diff --git a/schema/NFLTackleFFLeadersXML.dtd b/schema/NFLTackleFFLeadersXML.dtd
new file mode 100644 (file)
index 0000000..e68d19b
--- /dev/null
@@ -0,0 +1,18 @@
+<!ELEMENT XML_File_ID (#PCDATA)>
+<!ELEMENT heading (#PCDATA)>
+<!ELEMENT category (#PCDATA)>
+<!ELEMENT sport (#PCDATA)>
+<!ELEMENT title (#PCDATA)>
+<!ELEMENT rank (#PCDATA)>
+<!ELEMENT Player_Team (#PCDATA)>
+<!ELEMENT Total (#PCDATA)>
+<!ELEMENT Assist (#PCDATA)>
+<!ELEMENT Sacks (#PCDATA)>
+<!ELEMENT ForcedFumbles (#PCDATA)>
+<!ELEMENT Combined (#PCDATA)>
+<!ELEMENT SackYards (#PCDATA)>
+<!ELEMENT PassDeflections (#PCDATA)>
+<!ELEMENT Safeties (#PCDATA)>
+<!ELEMENT listing ( ( rank, Player_Team, Total, Assist, Sacks, ForcedFumbles, Combined, SackYards, PassDeflections, Safeties ) )>
+<!ELEMENT time_stamp (#PCDATA)>
+<!ELEMENT message ( ( XML_File_ID, heading, category, sport, title, listing*, time_stamp ) )>
diff --git a/schemagen/NFLTackleFFLeadersXML/22129127.xml b/schemagen/NFLTackleFFLeadersXML/22129127.xml
new file mode 100644 (file)
index 0000000..acdb3ca
--- /dev/null
@@ -0,0 +1 @@
+<?xml version="1.0" standalone="no" ?>\r<!DOCTYPE message PUBLIC "-//TSN//DTD Statistics 1.0/EN" "NFLTackleFFLeadersXML.dtd">\r<message>\r<XML_File_ID>22129127</XML_File_ID>\r<heading>ABX%NFC-TACKLES-ASSISTED-LEADERS</heading>\r<category>Statistics</category>\r<sport>NFL</sport>\r<title>2014 NFC Tackles Assisted Leaders</title>\r<listing>\r<rank>1</rank>\r<Player_Team>Luke Kuechly, CAR</Player_Team>\r<Total>56</Total>\r<Assist>41</Assist>\r<Sacks>1</Sacks>\r<ForcedFumbles>1</ForcedFumbles>\r<Combined>97</Combined>\r<SackYards>7</SackYards>\r<PassDeflections>4</PassDeflections>\r<Safeties>0</Safeties>\r</listing>\r<listing>\r<rank>2</rank>\r<Player_Team>Paul Worrilow, ATL</Player_Team>\r<Total>44</Total>\r<Assist>34</Assist>\r<Sacks>1</Sacks>\r<ForcedFumbles>2</ForcedFumbles>\r<Combined>78</Combined>\r<SackYards>10</SackYards>\r<PassDeflections>0</PassDeflections>\r<Safeties>0</Safeties>\r</listing>\r<listing>\r<rank>3</rank>\r<Player_Team>Keenan Robinson, WAS</Player_Team>\r<Total>49</Total>\r<Assist>26</Assist>\r<Sacks>1.5</Sacks>\r<ForcedFumbles>0</ForcedFumbles>\r<Combined>75</Combined>\r<SackYards>16</SackYards>\r<PassDeflections>1</PassDeflections>\r<Safeties>0</Safeties>\r</listing>\r<listing>\r<rank>4</rank>\r<Player_Team>Lavonte David, TAM</Player_Team>\r<Total>63</Total>\r<Assist>25</Assist>\r<Sacks>0</Sacks>\r<ForcedFumbles>2</ForcedFumbles>\r<Combined>88</Combined>\r<SackYards>0</SackYards>\r<PassDeflections>1</PassDeflections>\r<Safeties>0</Safeties>\r</listing>\r<listing>\r<rank>5</rank>\r<Player_Team>A.J. Hawk, GBP</Player_Team>\r<Total>36</Total>\r<Assist>24</Assist>\r<Sacks>0.5</Sacks>\r<ForcedFumbles>0</ForcedFumbles>\r<Combined>60</Combined>\r<SackYards>0</SackYards>\r<PassDeflections>2</PassDeflections>\r<Safeties>0</Safeties>\r</listing>\r<listing>\r<rank>6</rank>\r<Player_Team>Curtis Lofton, NOS</Player_Team>\r<Total>49</Total>\r<Assist>23</Assist>\r<Sacks>0</Sacks>\r<ForcedFumbles>0</ForcedFumbles>\r<Combined>72</Combined>\r<SackYards>0</SackYards>\r<PassDeflections>0</PassDeflections>\r<Safeties>0</Safeties>\r</listing>\r<listing>\r<rank></rank>\r<Player_Team>Bobby Wagner, SEA</Player_Team>\r<Total>27</Total>\r<Assist>23</Assist>\r<Sacks>1</Sacks>\r<ForcedFumbles>0</ForcedFumbles>\r<Combined>50</Combined>\r<SackYards>8</SackYards>\r<PassDeflections>2</PassDeflections>\r<Safeties>0</Safeties>\r</listing>\r<listing>\r<rank>8</rank>\r<Player_Team>Jameel McClain, NYG</Player_Team>\r<Total>26</Total>\r<Assist>21</Assist>\r<Sacks>0.5</Sacks>\r<ForcedFumbles>0</ForcedFumbles>\r<Combined>47</Combined>\r<SackYards>3</SackYards>\r<PassDeflections>2</PassDeflections>\r<Safeties>0</Safeties>\r</listing>\r<listing>\r<rank></rank>\r<Player_Team>K.J. Wright, SEA</Player_Team>\r<Total>43</Total>\r<Assist>21</Assist>\r<Sacks>0</Sacks>\r<ForcedFumbles>2</ForcedFumbles>\r<Combined>64</Combined>\r<SackYards>0</SackYards>\r<PassDeflections>2</PassDeflections>\r<Safeties>0</Safeties>\r</listing>\r<listing>\r<rank></rank>\r<Player_Team>Robert Blanton, MIN</Player_Team>\r<Total>39</Total>\r<Assist>21</Assist>\r<Sacks>0</Sacks>\r<ForcedFumbles>0</ForcedFumbles>\r<Combined>60</Combined>\r<SackYards>0</SackYards>\r<PassDeflections>1</PassDeflections>\r<Safeties>0</Safeties>\r</listing>\r<listing>\r<rank></rank>\r<Player_Team>Thomas Davis, CAR</Player_Team>\r<Total>38</Total>\r<Assist>21</Assist>\r<Sacks>1</Sacks>\r<ForcedFumbles>0</ForcedFumbles>\r<Combined>59</Combined>\r<SackYards>4</SackYards>\r<PassDeflections>1</PassDeflections>\r<Safeties>0</Safeties>\r</listing>\r<listing>\r<rank>12</rank>\r<Player_Team>Chad Greenway, MIN</Player_Team>\r<Total>25</Total>\r<Assist>20</Assist>\r<Sacks>1</Sacks>\r<ForcedFumbles>1</ForcedFumbles>\r<Combined>45</Combined>\r<SackYards>10</SackYards>\r<PassDeflections>2</PassDeflections>\r<Safeties>0</Safeties>\r</listing>\r<listing>\r<rank></rank>\r<Player_Team>Joplo Bartu, ATL</Player_Team>\r<Total>27</Total>\r<Assist>20</Assist>\r<Sacks>0</Sacks>\r<ForcedFumbles>0</ForcedFumbles>\r<Combined>47</Combined>\r<SackYards>0</SackYards>\r<PassDeflections>0</PassDeflections>\r<Safeties>0</Safeties>\r</listing>\r<listing>\r<rank>14</rank>\r<Player_Team>DeAndre Levy, DET</Player_Team>\r<Total>57</Total>\r<Assist>19</Assist>\r<Sacks>0.5</Sacks>\r<ForcedFumbles>0</ForcedFumbles>\r<Combined>76</Combined>\r<SackYards>5</SackYards>\r<PassDeflections>3</PassDeflections>\r<Safeties>1</Safeties>\r</listing>\r<listing>\r<rank></rank>\r<Player_Team>Jacquian Williams, NYG</Player_Team>\r<Total>47</Total>\r<Assist>19</Assist>\r<Sacks>0</Sacks>\r<ForcedFumbles>0</ForcedFumbles>\r<Combined>66</Combined>\r<SackYards>0</SackYards>\r<PassDeflections>3</PassDeflections>\r<Safeties>0</Safeties>\r</listing>\r<time_stamp> November 6, 2014, at 08:00 AM ET </time_stamp>\r</message>\r
\ No newline at end of file
index d75f9cd36417d49bf57183b170191149fed2747f..a4fe93e16e590f9491f04754eb0b1a89adb38f84 100644 (file)
@@ -181,6 +181,7 @@ dtds =
     "NFL_KickingLeaders_XML.dtd",
     "NFL_NBA_Draft_XML.dtd",
     "NFL_Roster_XML.dtd",
+    "NFLTackleFFLeadersXML.dtd",
     "NFL_Team_Stats_XML.dtd",
     "Transactions_XML.dtd",
     "Weekly_Sched_XML.dtd",
diff --git a/test/xml/sportinfo/NFLTackleFFLeadersXML.dtd b/test/xml/sportinfo/NFLTackleFFLeadersXML.dtd
new file mode 100644 (file)
index 0000000..e68d19b
--- /dev/null
@@ -0,0 +1,18 @@
+<!ELEMENT XML_File_ID (#PCDATA)>
+<!ELEMENT heading (#PCDATA)>
+<!ELEMENT category (#PCDATA)>
+<!ELEMENT sport (#PCDATA)>
+<!ELEMENT title (#PCDATA)>
+<!ELEMENT rank (#PCDATA)>
+<!ELEMENT Player_Team (#PCDATA)>
+<!ELEMENT Total (#PCDATA)>
+<!ELEMENT Assist (#PCDATA)>
+<!ELEMENT Sacks (#PCDATA)>
+<!ELEMENT ForcedFumbles (#PCDATA)>
+<!ELEMENT Combined (#PCDATA)>
+<!ELEMENT SackYards (#PCDATA)>
+<!ELEMENT PassDeflections (#PCDATA)>
+<!ELEMENT Safeties (#PCDATA)>
+<!ELEMENT listing ( ( rank, Player_Team, Total, Assist, Sacks, ForcedFumbles, Combined, SackYards, PassDeflections, Safeties ) )>
+<!ELEMENT time_stamp (#PCDATA)>
+<!ELEMENT message ( ( XML_File_ID, heading, category, sport, title, listing*, time_stamp ) )>
diff --git a/test/xml/sportinfo/NFLTackleFFLeadersXML.xml b/test/xml/sportinfo/NFLTackleFFLeadersXML.xml
new file mode 100644 (file)
index 0000000..acdb3ca
--- /dev/null
@@ -0,0 +1 @@
+<?xml version="1.0" standalone="no" ?>\r<!DOCTYPE message PUBLIC "-//TSN//DTD Statistics 1.0/EN" "NFLTackleFFLeadersXML.dtd">\r<message>\r<XML_File_ID>22129127</XML_File_ID>\r<heading>ABX%NFC-TACKLES-ASSISTED-LEADERS</heading>\r<category>Statistics</category>\r<sport>NFL</sport>\r<title>2014 NFC Tackles Assisted Leaders</title>\r<listing>\r<rank>1</rank>\r<Player_Team>Luke Kuechly, CAR</Player_Team>\r<Total>56</Total>\r<Assist>41</Assist>\r<Sacks>1</Sacks>\r<ForcedFumbles>1</ForcedFumbles>\r<Combined>97</Combined>\r<SackYards>7</SackYards>\r<PassDeflections>4</PassDeflections>\r<Safeties>0</Safeties>\r</listing>\r<listing>\r<rank>2</rank>\r<Player_Team>Paul Worrilow, ATL</Player_Team>\r<Total>44</Total>\r<Assist>34</Assist>\r<Sacks>1</Sacks>\r<ForcedFumbles>2</ForcedFumbles>\r<Combined>78</Combined>\r<SackYards>10</SackYards>\r<PassDeflections>0</PassDeflections>\r<Safeties>0</Safeties>\r</listing>\r<listing>\r<rank>3</rank>\r<Player_Team>Keenan Robinson, WAS</Player_Team>\r<Total>49</Total>\r<Assist>26</Assist>\r<Sacks>1.5</Sacks>\r<ForcedFumbles>0</ForcedFumbles>\r<Combined>75</Combined>\r<SackYards>16</SackYards>\r<PassDeflections>1</PassDeflections>\r<Safeties>0</Safeties>\r</listing>\r<listing>\r<rank>4</rank>\r<Player_Team>Lavonte David, TAM</Player_Team>\r<Total>63</Total>\r<Assist>25</Assist>\r<Sacks>0</Sacks>\r<ForcedFumbles>2</ForcedFumbles>\r<Combined>88</Combined>\r<SackYards>0</SackYards>\r<PassDeflections>1</PassDeflections>\r<Safeties>0</Safeties>\r</listing>\r<listing>\r<rank>5</rank>\r<Player_Team>A.J. Hawk, GBP</Player_Team>\r<Total>36</Total>\r<Assist>24</Assist>\r<Sacks>0.5</Sacks>\r<ForcedFumbles>0</ForcedFumbles>\r<Combined>60</Combined>\r<SackYards>0</SackYards>\r<PassDeflections>2</PassDeflections>\r<Safeties>0</Safeties>\r</listing>\r<listing>\r<rank>6</rank>\r<Player_Team>Curtis Lofton, NOS</Player_Team>\r<Total>49</Total>\r<Assist>23</Assist>\r<Sacks>0</Sacks>\r<ForcedFumbles>0</ForcedFumbles>\r<Combined>72</Combined>\r<SackYards>0</SackYards>\r<PassDeflections>0</PassDeflections>\r<Safeties>0</Safeties>\r</listing>\r<listing>\r<rank></rank>\r<Player_Team>Bobby Wagner, SEA</Player_Team>\r<Total>27</Total>\r<Assist>23</Assist>\r<Sacks>1</Sacks>\r<ForcedFumbles>0</ForcedFumbles>\r<Combined>50</Combined>\r<SackYards>8</SackYards>\r<PassDeflections>2</PassDeflections>\r<Safeties>0</Safeties>\r</listing>\r<listing>\r<rank>8</rank>\r<Player_Team>Jameel McClain, NYG</Player_Team>\r<Total>26</Total>\r<Assist>21</Assist>\r<Sacks>0.5</Sacks>\r<ForcedFumbles>0</ForcedFumbles>\r<Combined>47</Combined>\r<SackYards>3</SackYards>\r<PassDeflections>2</PassDeflections>\r<Safeties>0</Safeties>\r</listing>\r<listing>\r<rank></rank>\r<Player_Team>K.J. Wright, SEA</Player_Team>\r<Total>43</Total>\r<Assist>21</Assist>\r<Sacks>0</Sacks>\r<ForcedFumbles>2</ForcedFumbles>\r<Combined>64</Combined>\r<SackYards>0</SackYards>\r<PassDeflections>2</PassDeflections>\r<Safeties>0</Safeties>\r</listing>\r<listing>\r<rank></rank>\r<Player_Team>Robert Blanton, MIN</Player_Team>\r<Total>39</Total>\r<Assist>21</Assist>\r<Sacks>0</Sacks>\r<ForcedFumbles>0</ForcedFumbles>\r<Combined>60</Combined>\r<SackYards>0</SackYards>\r<PassDeflections>1</PassDeflections>\r<Safeties>0</Safeties>\r</listing>\r<listing>\r<rank></rank>\r<Player_Team>Thomas Davis, CAR</Player_Team>\r<Total>38</Total>\r<Assist>21</Assist>\r<Sacks>1</Sacks>\r<ForcedFumbles>0</ForcedFumbles>\r<Combined>59</Combined>\r<SackYards>4</SackYards>\r<PassDeflections>1</PassDeflections>\r<Safeties>0</Safeties>\r</listing>\r<listing>\r<rank>12</rank>\r<Player_Team>Chad Greenway, MIN</Player_Team>\r<Total>25</Total>\r<Assist>20</Assist>\r<Sacks>1</Sacks>\r<ForcedFumbles>1</ForcedFumbles>\r<Combined>45</Combined>\r<SackYards>10</SackYards>\r<PassDeflections>2</PassDeflections>\r<Safeties>0</Safeties>\r</listing>\r<listing>\r<rank></rank>\r<Player_Team>Joplo Bartu, ATL</Player_Team>\r<Total>27</Total>\r<Assist>20</Assist>\r<Sacks>0</Sacks>\r<ForcedFumbles>0</ForcedFumbles>\r<Combined>47</Combined>\r<SackYards>0</SackYards>\r<PassDeflections>0</PassDeflections>\r<Safeties>0</Safeties>\r</listing>\r<listing>\r<rank>14</rank>\r<Player_Team>DeAndre Levy, DET</Player_Team>\r<Total>57</Total>\r<Assist>19</Assist>\r<Sacks>0.5</Sacks>\r<ForcedFumbles>0</ForcedFumbles>\r<Combined>76</Combined>\r<SackYards>5</SackYards>\r<PassDeflections>3</PassDeflections>\r<Safeties>1</Safeties>\r</listing>\r<listing>\r<rank></rank>\r<Player_Team>Jacquian Williams, NYG</Player_Team>\r<Total>47</Total>\r<Assist>19</Assist>\r<Sacks>0</Sacks>\r<ForcedFumbles>0</ForcedFumbles>\r<Combined>66</Combined>\r<SackYards>0</SackYards>\r<PassDeflections>3</PassDeflections>\r<Safeties>0</Safeties>\r</listing>\r<time_stamp> November 6, 2014, at 08:00 AM ET </time_stamp>\r</message>\r
\ No newline at end of file