From: Michael Orlitzky Date: Mon, 23 Jun 2014 13:19:42 +0000 (-0400) Subject: Add SportInfo support for nflfirstdownxml.dtd. X-Git-Tag: 0.0.6~106 X-Git-Url: https://gitweb.michael.orlitzky.com/?a=commitdiff_plain;h=3d2f82715f5fa3820dc6cde432466d1c1b14faa2;p=dead%2Fhtsn-import.git Add SportInfo support for nflfirstdownxml.dtd. --- diff --git a/doc/man1/htsn-import.1 b/doc/man1/htsn-import.1 index 8df3a6b..c375b9d 100644 --- a/doc/man1/htsn-import.1 +++ b/doc/man1/htsn-import.1 @@ -306,6 +306,8 @@ nbatripledoublexml.dtd NBATurnoversXML.dtd .IP \[bu] NCAA_Conference_Schedule_XML.dtd +.IP \[bu] +nflfirstdownxml.dtd .RE .P The GameInfo and SportInfo types do not have their own top-level diff --git a/schema/nflfirstdownxml.dtd b/schema/nflfirstdownxml.dtd new file mode 100644 index 0000000..3868c69 --- /dev/null +++ b/schema/nflfirstdownxml.dtd @@ -0,0 +1,30 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/schemagen/nflfirstdownxml/nflfirstdownxml.xml b/schemagen/nflfirstdownxml/nflfirstdownxml.xml new file mode 100644 index 0000000..3f59d41 --- /dev/null +++ b/schemagen/nflfirstdownxml/nflfirstdownxml.xml @@ -0,0 +1,419 @@ + + + +7260117 +ABX%NFL-FIRST-DOWN +Statistics +NFL +NFL Statistics - First Down Plays +(Complete through Monday, October 29th) + + ++Indianapolis +6.49 +189 +1227 + ++Kansas City +6.24 +202 +1261 + ++New England +5.90 +191 +1127 + ++Jacksonville +5.49 +160 +878 + ++New York Jets +5.34 +179 +956 + ++Cincinnati +5.32 +193 +1026 + ++San Diego +5.29 +205 +1084 + ++Denver +5.26 +200 +1052 + ++Oakland +5.01 +168 +841 + ++Pittsburgh +4.94 +163 +806 + ++Buffalo +4.92 +167 +822 + ++Tennessee +4.41 +157 +693 + ++Cleveland +4.34 +153 +664 + ++Baltimore +4.26 +218 +929 + ++Seattle +4.00 +161 +644 + ++Miami +3.93 +152 +597 + ++Total +5.11 +2858 +14607 + + + ++Pittsburgh +4.09 +149 +609 + ++Cleveland +4.15 +177 +735 + ++Jacksonville +4.57 +169 +772 + ++Baltimore +4.80 +174 +835 + ++Seattle +4.83 +157 +759 + ++Denver +4.89 +193 +944 + ++Kansas City +4.89 +187 +915 + ++New York Jets +4.97 +195 +970 + ++San Diego +5.04 +199 +1002 + ++Miami +5.06 +157 +794 + ++Cincinnati +5.10 +195 +994 + ++Tennessee +5.17 +168 +868 + ++Oakland +5.23 +163 +852 + ++New England +5.82 +202 +1176 + ++Indianapolis +5.95 +168 +1000 + ++Buffalo +6.34 +160 +1014 + ++Total +5.06 +2813 +14239 + + + + + ++St. Louis +6.46 +213 +1377 + ++Minnesota +6.24 +193 +1204 + ++Detroit +5.90 +171 +1009 + ++Atlanta +5.60 +150 +840 + ++Washington +5.55 +154 +855 + ++Philadelphia +5.08 +154 +782 + ++Green Bay +4.92 +164 +807 + ++Dallas +4.82 +147 +709 + ++Arizona +4.75 +158 +750 + ++New York Giants +4.70 +193 +908 + ++Chicago +4.64 +159 +738 + ++Tampa Bay +4.63 +161 +746 + ++San Francisco +4.44 +175 +777 + ++New Orleans +4.43 +175 +776 + ++Carolina +4.14 +176 +728 + ++Total +5.11 +2543 +13006 + + + ++Atlanta +4.04 +169 +682 + ++Dallas +4.06 +162 +657 + ++Philadelphia +4.16 +161 +669 + ++Tampa Bay +4.22 +150 +633 + ++St. Louis +4.78 +180 +860 + ++Green Bay +4.83 +144 +695 + ++Chicago +4.92 +166 +817 + ++New York Giants +5.21 +184 +959 + ++Minnesota +5.23 +191 +998 + ++San Francisco +5.36 +165 +885 + ++Carolina +5.69 +205 +1167 + ++Washington +5.79 +224 +1298 + ++Arizona +6.05 +166 +1005 + ++New Orleans +6.11 +152 +929 + ++Detroit +6.63 +169 +1120 + ++Total +5.17 +2588 +13374 + + + + November 5, 2001, at 11:35 AM ET + diff --git a/src/TSN/XML/SportInfo.hs b/src/TSN/XML/SportInfo.hs index ffdd6c1..84f00cd 100644 --- a/src/TSN/XML/SportInfo.hs +++ b/src/TSN/XML/SportInfo.hs @@ -171,7 +171,7 @@ dtds = "nbatripledoublexml.dtd", "NBATurnoversXML.dtd", "NCAA_Conference_Schedule_XML.dtd", - "nflfirstdownxml.dtd", -- no dtd + "nflfirstdownxml.dtd", "NFLFumbleLeaderXML.dtd", -- no dtd "NFLGiveTakeXML.dtd", -- no dtd "NFLGrassTurfDomeOutsideXML.dtd", -- no dtd @@ -414,7 +414,8 @@ sport_info_test_files = "nbateamleadersxml.xml", "nbatripledoublexml.xml", "NBATurnoversXML.xml", - "NCAA_Conference_Schedule_XML.xml" + "NCAA_Conference_Schedule_XML.xml", + "nflfirstdownxml.xml" ] diff --git a/test/xml/sportinfo/nflfirstdownxml.dtd b/test/xml/sportinfo/nflfirstdownxml.dtd new file mode 100644 index 0000000..3868c69 --- /dev/null +++ b/test/xml/sportinfo/nflfirstdownxml.dtd @@ -0,0 +1,30 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/test/xml/sportinfo/nflfirstdownxml.xml b/test/xml/sportinfo/nflfirstdownxml.xml new file mode 100644 index 0000000..3f59d41 --- /dev/null +++ b/test/xml/sportinfo/nflfirstdownxml.xml @@ -0,0 +1,419 @@ + + + +7260117 +ABX%NFL-FIRST-DOWN +Statistics +NFL +NFL Statistics - First Down Plays +(Complete through Monday, October 29th) + + ++Indianapolis +6.49 +189 +1227 + ++Kansas City +6.24 +202 +1261 + ++New England +5.90 +191 +1127 + ++Jacksonville +5.49 +160 +878 + ++New York Jets +5.34 +179 +956 + ++Cincinnati +5.32 +193 +1026 + ++San Diego +5.29 +205 +1084 + ++Denver +5.26 +200 +1052 + ++Oakland +5.01 +168 +841 + ++Pittsburgh +4.94 +163 +806 + ++Buffalo +4.92 +167 +822 + ++Tennessee +4.41 +157 +693 + ++Cleveland +4.34 +153 +664 + ++Baltimore +4.26 +218 +929 + ++Seattle +4.00 +161 +644 + ++Miami +3.93 +152 +597 + ++Total +5.11 +2858 +14607 + + + ++Pittsburgh +4.09 +149 +609 + ++Cleveland +4.15 +177 +735 + ++Jacksonville +4.57 +169 +772 + ++Baltimore +4.80 +174 +835 + ++Seattle +4.83 +157 +759 + ++Denver +4.89 +193 +944 + ++Kansas City +4.89 +187 +915 + ++New York Jets +4.97 +195 +970 + ++San Diego +5.04 +199 +1002 + ++Miami +5.06 +157 +794 + ++Cincinnati +5.10 +195 +994 + ++Tennessee +5.17 +168 +868 + ++Oakland +5.23 +163 +852 + ++New England +5.82 +202 +1176 + ++Indianapolis +5.95 +168 +1000 + ++Buffalo +6.34 +160 +1014 + ++Total +5.06 +2813 +14239 + + + + + ++St. Louis +6.46 +213 +1377 + ++Minnesota +6.24 +193 +1204 + ++Detroit +5.90 +171 +1009 + ++Atlanta +5.60 +150 +840 + ++Washington +5.55 +154 +855 + ++Philadelphia +5.08 +154 +782 + ++Green Bay +4.92 +164 +807 + ++Dallas +4.82 +147 +709 + ++Arizona +4.75 +158 +750 + ++New York Giants +4.70 +193 +908 + ++Chicago +4.64 +159 +738 + ++Tampa Bay +4.63 +161 +746 + ++San Francisco +4.44 +175 +777 + ++New Orleans +4.43 +175 +776 + ++Carolina +4.14 +176 +728 + ++Total +5.11 +2543 +13006 + + + ++Atlanta +4.04 +169 +682 + ++Dallas +4.06 +162 +657 + ++Philadelphia +4.16 +161 +669 + ++Tampa Bay +4.22 +150 +633 + ++St. Louis +4.78 +180 +860 + ++Green Bay +4.83 +144 +695 + ++Chicago +4.92 +166 +817 + ++New York Giants +5.21 +184 +959 + ++Minnesota +5.23 +191 +998 + ++San Francisco +5.36 +165 +885 + ++Carolina +5.69 +205 +1167 + ++Washington +5.79 +224 +1298 + ++Arizona +6.05 +166 +1005 + ++New Orleans +6.11 +152 +929 + ++Detroit +6.63 +169 +1120 + ++Total +5.17 +2588 +13374 + + + + November 5, 2001, at 11:35 AM ET +