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

index 220a7e042e3562c95a416b1be15293db7dd842ed..3baf7dc97b451940e289e2bc5f216817696543ab 100644 (file)
@@ -330,6 +330,8 @@ nflstandxml.dtd
 NFLTeamRankingsXML.dtd
 .IP \[bu]
 NFLTopPerformanceXML.dtd
+.IP \[bu]
+NFLTotalYardageXML.dtd
 .RE
 .P
 The GameInfo and SportInfo types do not have their own top-level
diff --git a/schema/NFLTotalYardageXML.dtd b/schema/NFLTotalYardageXML.dtd
new file mode 100644 (file)
index 0000000..23f4153
--- /dev/null
@@ -0,0 +1,36 @@
+<!ELEMENT message  (XML_File_ID, heading , category , sport , title , conference+ , 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 conference  (offense_listing , defense_listing )>\r
+<!ATTLIST conference  name CDATA  #REQUIRED >\r
+<!ELEMENT offense_listing  (listing+ )>\r
+\r
+<!ELEMENT listing  (team , total , rushing , passing , AvgTotal , AvgRush , AvgPass )>\r
+\r
+<!ELEMENT team  (#PCDATA )>\r
+\r
+<!ELEMENT total  (#PCDATA )>\r
+\r
+<!ELEMENT rushing  (#PCDATA )>\r
+\r
+<!ELEMENT passing  (#PCDATA )>\r
+\r
+<!ELEMENT AvgTotal  (#PCDATA )>\r
+\r
+<!ELEMENT AvgRush  (#PCDATA )>\r
+\r
+<!ELEMENT AvgPass  (#PCDATA )>\r
+\r
+<!ELEMENT defense_listing  (listing+ )>\r
+\r
+<!ELEMENT time_stamp  (#PCDATA )>\r
+\r
diff --git a/schemagen/NFLTotalYardageXML/NFLTotalYardageXML.xml b/schemagen/NFLTotalYardageXML/NFLTotalYardageXML.xml
new file mode 100644 (file)
index 0000000..f343900
--- /dev/null
@@ -0,0 +1,580 @@
+<?xml version="1.0" standalone="no" ?>\r
+<!DOCTYPE message PUBLIC "-//TSN//DTD Statistics 1.0/EN" "NFLTotalYardageXML.dtd">\r
+<message>\r
+<XML_File_ID>91217</XML_File_ID>\r
+<heading>ABX%NFL-YARDAGE</heading>\r
+<category>Statistics</category>\r
+<sport>NFL</sport>\r
+<title>2001 NFL Statistics - Total Yardage</title>\r
+<conference name="American Football Conference">\r
+<offense_listing>\r
+<listing>\r
+<team>Indianapolis</team>\r
+<total>4200</total>\r
+<rushing>1328</rushing>\r
+<passing>2872</passing>\r
+<AvgTotal>381.8</AvgTotal>\r
+<AvgRush>120.7</AvgRush>\r
+<AvgPass>261.1</AvgPass>\r
+</listing>\r
+<listing>\r
+<team>Pittsburgh</team>\r
+<total>3948</total>\r
+<rushing>1973</rushing>\r
+<passing>1975</passing>\r
+<AvgTotal>358.9</AvgTotal>\r
+<AvgRush>179.4</AvgRush>\r
+<AvgPass>179.5</AvgPass>\r
+</listing>\r
+<listing>\r
+<team>Kansas City</team>\r
+<total>3834</total>\r
+<rushing>1329</rushing>\r
+<passing>2505</passing>\r
+<AvgTotal>348.5</AvgTotal>\r
+<AvgRush>120.8</AvgRush>\r
+<AvgPass>227.7</AvgPass>\r
+</listing>\r
+<listing>\r
+<team>Oakland</team>\r
+<total>3816</total>\r
+<rushing>1237</rushing>\r
+<passing>2579</passing>\r
+<AvgTotal>346.9</AvgTotal>\r
+<AvgRush>112.5</AvgRush>\r
+<AvgPass>234.5</AvgPass>\r
+</listing>\r
+<listing>\r
+<team>Baltimore</team>\r
+<total>4004</total>\r
+<rushing>1293</rushing>\r
+<passing>2711</passing>\r
+<AvgTotal>333.7</AvgTotal>\r
+<AvgRush>107.8</AvgRush>\r
+<AvgPass>225.9</AvgPass>\r
+</listing>\r
+<listing>\r
+<team>San Diego</team>\r
+<total>3806</total>\r
+<rushing>1314</rushing>\r
+<passing>2492</passing>\r
+<AvgTotal>317.2</AvgTotal>\r
+<AvgRush>109.5</AvgRush>\r
+<AvgPass>207.7</AvgPass>\r
+</listing>\r
+<listing>\r
+<team>Buffalo</team>\r
+<total>3442</total>\r
+<rushing>1065</rushing>\r
+<passing>2377</passing>\r
+<AvgTotal>312.9</AvgTotal>\r
+<AvgRush>96.8</AvgRush>\r
+<AvgPass>216.1</AvgPass>\r
+</listing>\r
+<listing>\r
+<team>Tennessee</team>\r
+<total>3433</total>\r
+<rushing>1097</rushing>\r
+<passing>2336</passing>\r
+<AvgTotal>312.1</AvgTotal>\r
+<AvgRush>99.7</AvgRush>\r
+<AvgPass>212.4</AvgPass>\r
+</listing>\r
+<listing>\r
+<team>Denver</team>\r
+<total>3723</total>\r
+<rushing>1397</rushing>\r
+<passing>2326</passing>\r
+<AvgTotal>310.3</AvgTotal>\r
+<AvgRush>116.4</AvgRush>\r
+<AvgPass>193.8</AvgPass>\r
+</listing>\r
+<listing>\r
+<team>Miami</team>\r
+<total>3398</total>\r
+<rushing>1104</rushing>\r
+<passing>2294</passing>\r
+<AvgTotal>308.9</AvgTotal>\r
+<AvgRush>100.4</AvgRush>\r
+<AvgPass>208.5</AvgPass>\r
+</listing>\r
+<listing>\r
+<team>New England</team>\r
+<total>3646</total>\r
+<rushing>1285</rushing>\r
+<passing>2361</passing>\r
+<AvgTotal>303.8</AvgTotal>\r
+<AvgRush>107.1</AvgRush>\r
+<AvgPass>196.8</AvgPass>\r
+</listing>\r
+<listing>\r
+<team>Seattle</team>\r
+<total>3228</total>\r
+<rushing>1384</rushing>\r
+<passing>1844</passing>\r
+<AvgTotal>293.5</AvgTotal>\r
+<AvgRush>125.8</AvgRush>\r
+<AvgPass>167.6</AvgPass>\r
+</listing>\r
+<listing>\r
+<team>Jacksonville</team>\r
+<total>3212</total>\r
+<rushing>923</rushing>\r
+<passing>2289</passing>\r
+<AvgTotal>292.0</AvgTotal>\r
+<AvgRush>83.9</AvgRush>\r
+<AvgPass>208.1</AvgPass>\r
+</listing>\r
+<listing>\r
+<team>New York Jets</team>\r
+<total>3138</total>\r
+<rushing>1460</rushing>\r
+<passing>1678</passing>\r
+<AvgTotal>285.3</AvgTotal>\r
+<AvgRush>132.7</AvgRush>\r
+<AvgPass>152.5</AvgPass>\r
+</listing>\r
+<listing>\r
+<team>Cincinnati</team>\r
+<total>3091</total>\r
+<rushing>1141</rushing>\r
+<passing>1950</passing>\r
+<AvgTotal>281.0</AvgTotal>\r
+<AvgRush>103.7</AvgRush>\r
+<AvgPass>177.3</AvgPass>\r
+</listing>\r
+<listing>\r
+<team>Cleveland</team>\r
+<total>2736</total>\r
+<rushing>928</rushing>\r
+<passing>1808</passing>\r
+<AvgTotal>248.7</AvgTotal>\r
+<AvgRush>84.4</AvgRush>\r
+<AvgPass>164.4</AvgPass>\r
+</listing>\r
+</offense_listing>\r
+<defense_listing>\r
+<listing>\r
+<team>Pittsburgh</team>\r
+<total>2842</total>\r
+<rushing>793</rushing>\r
+<passing>2049</passing>\r
+<AvgTotal>258.4</AvgTotal>\r
+<AvgRush>72.1</AvgRush>\r
+<AvgPass>186.3</AvgPass>\r
+</listing>\r
+<listing>\r
+<team>Baltimore</team>\r
+<total>3297</total>\r
+<rushing>894</rushing>\r
+<passing>2403</passing>\r
+<AvgTotal>274.8</AvgTotal>\r
+<AvgRush>74.5</AvgRush>\r
+<AvgPass>200.3</AvgPass>\r
+</listing>\r
+<listing>\r
+<team>Miami</team>\r
+<total>3118</total>\r
+<rushing>1156</rushing>\r
+<passing>1962</passing>\r
+<AvgTotal>283.5</AvgTotal>\r
+<AvgRush>105.1</AvgRush>\r
+<AvgPass>178.4</AvgPass>\r
+</listing>\r
+<listing>\r
+<team>Denver</team>\r
+<total>3432</total>\r
+<rushing>1083</rushing>\r
+<passing>2349</passing>\r
+<AvgTotal>286.0</AvgTotal>\r
+<AvgRush>90.3</AvgRush>\r
+<AvgPass>195.8</AvgPass>\r
+</listing>\r
+<listing>\r
+<team>Cincinnati</team>\r
+<total>3321</total>\r
+<rushing>1213</rushing>\r
+<passing>2108</passing>\r
+<AvgTotal>301.9</AvgTotal>\r
+<AvgRush>110.3</AvgRush>\r
+<AvgPass>191.6</AvgPass>\r
+</listing>\r
+<listing>\r
+<team>San Diego</team>\r
+<total>3702</total>\r
+<rushing>1169</rushing>\r
+<passing>2533</passing>\r
+<AvgTotal>308.5</AvgTotal>\r
+<AvgRush>97.4</AvgRush>\r
+<AvgPass>211.1</AvgPass>\r
+</listing>\r
+<listing>\r
+<team>New York Jets</team>\r
+<total>3462</total>\r
+<rushing>1456</rushing>\r
+<passing>2006</passing>\r
+<AvgTotal>314.7</AvgTotal>\r
+<AvgRush>132.4</AvgRush>\r
+<AvgPass>182.4</AvgPass>\r
+</listing>\r
+<listing>\r
+<team>Cleveland</team>\r
+<total>3536</total>\r
+<rushing>1368</rushing>\r
+<passing>2168</passing>\r
+<AvgTotal>321.5</AvgTotal>\r
+<AvgRush>124.4</AvgRush>\r
+<AvgPass>197.1</AvgPass>\r
+</listing>\r
+<listing>\r
+<team>Seattle</team>\r
+<total>3553</total>\r
+<rushing>1188</rushing>\r
+<passing>2365</passing>\r
+<AvgTotal>323.0</AvgTotal>\r
+<AvgRush>108.0</AvgRush>\r
+<AvgPass>215.0</AvgPass>\r
+</listing>\r
+<listing>\r
+<team>Oakland</team>\r
+<total>3555</total>\r
+<rushing>1413</rushing>\r
+<passing>2142</passing>\r
+<AvgTotal>323.2</AvgTotal>\r
+<AvgRush>128.5</AvgRush>\r
+<AvgPass>194.7</AvgPass>\r
+</listing>\r
+<listing>\r
+<team>Kansas City</team>\r
+<total>3556</total>\r
+<rushing>1470</rushing>\r
+<passing>2086</passing>\r
+<AvgTotal>323.3</AvgTotal>\r
+<AvgRush>133.6</AvgRush>\r
+<AvgPass>189.6</AvgPass>\r
+</listing>\r
+<listing>\r
+<team>Buffalo</team>\r
+<total>3573</total>\r
+<rushing>1509</rushing>\r
+<passing>2064</passing>\r
+<AvgTotal>324.8</AvgTotal>\r
+<AvgRush>137.2</AvgRush>\r
+<AvgPass>187.6</AvgPass>\r
+</listing>\r
+<listing>\r
+<team>Tennessee</team>\r
+<total>3640</total>\r
+<rushing>985</rushing>\r
+<passing>2655</passing>\r
+<AvgTotal>330.9</AvgTotal>\r
+<AvgRush>89.5</AvgRush>\r
+<AvgPass>241.4</AvgPass>\r
+</listing>\r
+<listing>\r
+<team>New England</team>\r
+<total>4075</total>\r
+<rushing>1444</rushing>\r
+<passing>2631</passing>\r
+<AvgTotal>339.6</AvgTotal>\r
+<AvgRush>120.3</AvgRush>\r
+<AvgPass>219.3</AvgPass>\r
+</listing>\r
+<listing>\r
+<team>Jacksonville</team>\r
+<total>3749</total>\r
+<rushing>1215</rushing>\r
+<passing>2534</passing>\r
+<AvgTotal>340.8</AvgTotal>\r
+<AvgRush>110.5</AvgRush>\r
+<AvgPass>230.4</AvgPass>\r
+</listing>\r
+<listing>\r
+<team>Indianapolis</team>\r
+<total>3880</total>\r
+<rushing>1461</rushing>\r
+<passing>2419</passing>\r
+<AvgTotal>352.7</AvgTotal>\r
+<AvgRush>132.8</AvgRush>\r
+<AvgPass>219.9</AvgPass>\r
+</listing>\r
+</defense_listing>\r
+</conference>\r
+<conference name="National Football Conference">\r
+<offense_listing>\r
+<listing>\r
+<team>St. Louis</team>\r
+<total>4587</total>\r
+<rushing>1325</rushing>\r
+<passing>3262</passing>\r
+<AvgTotal>417.0</AvgTotal>\r
+<AvgRush>120.5</AvgRush>\r
+<AvgPass>296.5</AvgPass>\r
+</listing>\r
+<listing>\r
+<team>San Francisco</team>\r
+<total>4248</total>\r
+<rushing>1705</rushing>\r
+<passing>2543</passing>\r
+<AvgTotal>386.2</AvgTotal>\r
+<AvgRush>155.0</AvgRush>\r
+<AvgPass>231.2</AvgPass>\r
+</listing>\r
+<listing>\r
+<team>New Orleans</team>\r
+<total>3927</total>\r
+<rushing>1349</rushing>\r
+<passing>2578</passing>\r
+<AvgTotal>357.0</AvgTotal>\r
+<AvgRush>122.6</AvgRush>\r
+<AvgPass>234.4</AvgPass>\r
+</listing>\r
+<listing>\r
+<team>Green Bay</team>\r
+<total>3901</total>\r
+<rushing>1112</rushing>\r
+<passing>2789</passing>\r
+<AvgTotal>354.6</AvgTotal>\r
+<AvgRush>101.1</AvgRush>\r
+<AvgPass>253.5</AvgPass>\r
+</listing>\r
+<listing>\r
+<team>Minnesota</team>\r
+<total>3680</total>\r
+<rushing>1068</rushing>\r
+<passing>2612</passing>\r
+<AvgTotal>334.5</AvgTotal>\r
+<AvgRush>97.1</AvgRush>\r
+<AvgPass>237.5</AvgPass>\r
+</listing>\r
+<listing>\r
+<team>Arizona</team>\r
+<total>3560</total>\r
+<rushing>1003</rushing>\r
+<passing>2557</passing>\r
+<AvgTotal>323.6</AvgTotal>\r
+<AvgRush>91.2</AvgRush>\r
+<AvgPass>232.5</AvgPass>\r
+</listing>\r
+<listing>\r
+<team>Detroit</team>\r
+<total>3523</total>\r
+<rushing>867</rushing>\r
+<passing>2656</passing>\r
+<AvgTotal>320.3</AvgTotal>\r
+<AvgRush>78.8</AvgRush>\r
+<AvgPass>241.5</AvgPass>\r
+</listing>\r
+<listing>\r
+<team>New York Giants</team>\r
+<total>3482</total>\r
+<rushing>1184</rushing>\r
+<passing>2298</passing>\r
+<AvgTotal>316.5</AvgTotal>\r
+<AvgRush>107.6</AvgRush>\r
+<AvgPass>208.9</AvgPass>\r
+</listing>\r
+<listing>\r
+<team>Philadelphia</team>\r
+<total>3414</total>\r
+<rushing>1342</rushing>\r
+<passing>2072</passing>\r
+<AvgTotal>310.4</AvgTotal>\r
+<AvgRush>122.0</AvgRush>\r
+<AvgPass>188.4</AvgPass>\r
+</listing>\r
+<listing>\r
+<team>Atlanta</team>\r
+<total>3392</total>\r
+<rushing>1331</rushing>\r
+<passing>2061</passing>\r
+<AvgTotal>308.4</AvgTotal>\r
+<AvgRush>121.0</AvgRush>\r
+<AvgPass>187.4</AvgPass>\r
+</listing>\r
+<listing>\r
+<team>Tampa Bay</team>\r
+<total>3287</total>\r
+<rushing>878</rushing>\r
+<passing>2409</passing>\r
+<AvgTotal>298.8</AvgTotal>\r
+<AvgRush>79.8</AvgRush>\r
+<AvgPass>219.0</AvgPass>\r
+</listing>\r
+<listing>\r
+<team>Chicago</team>\r
+<total>3241</total>\r
+<rushing>1121</rushing>\r
+<passing>2120</passing>\r
+<AvgTotal>294.6</AvgTotal>\r
+<AvgRush>101.9</AvgRush>\r
+<AvgPass>192.7</AvgPass>\r
+</listing>\r
+<listing>\r
+<team>Dallas</team>\r
+<total>2868</total>\r
+<rushing>1512</rushing>\r
+<passing>1356</passing>\r
+<AvgTotal>260.7</AvgTotal>\r
+<AvgRush>137.5</AvgRush>\r
+<AvgPass>123.3</AvgPass>\r
+</listing>\r
+<listing>\r
+<team>Washington</team>\r
+<total>2846</total>\r
+<rushing>1221</rushing>\r
+<passing>1625</passing>\r
+<AvgTotal>258.7</AvgTotal>\r
+<AvgRush>111.0</AvgRush>\r
+<AvgPass>147.7</AvgPass>\r
+</listing>\r
+<listing>\r
+<team>Carolina</team>\r
+<total>2981</total>\r
+<rushing>909</rushing>\r
+<passing>2072</passing>\r
+<AvgTotal>248.4</AvgTotal>\r
+<AvgRush>75.8</AvgRush>\r
+<AvgPass>172.7</AvgPass>\r
+</listing>\r
+</offense_listing>\r
+<defense_listing>\r
+<listing>\r
+<team>St. Louis</team>\r
+<total>3023</total>\r
+<rushing>954</rushing>\r
+<passing>2069</passing>\r
+<AvgTotal>274.8</AvgTotal>\r
+<AvgRush>86.7</AvgRush>\r
+<AvgPass>188.1</AvgPass>\r
+</listing>\r
+<listing>\r
+<team>Philadelphia</team>\r
+<total>3046</total>\r
+<rushing>1267</rushing>\r
+<passing>1779</passing>\r
+<AvgTotal>276.9</AvgTotal>\r
+<AvgRush>115.2</AvgRush>\r
+<AvgPass>161.7</AvgPass>\r
+</listing>\r
+<listing>\r
+<team>Green Bay</team>\r
+<total>3162</total>\r
+<rushing>1039</rushing>\r
+<passing>2123</passing>\r
+<AvgTotal>287.5</AvgTotal>\r
+<AvgRush>94.5</AvgRush>\r
+<AvgPass>193.0</AvgPass>\r
+</listing>\r
+<listing>\r
+<team>Dallas</team>\r
+<total>3182</total>\r
+<rushing>1157</rushing>\r
+<passing>2025</passing>\r
+<AvgTotal>289.3</AvgTotal>\r
+<AvgRush>105.2</AvgRush>\r
+<AvgPass>184.1</AvgPass>\r
+</listing>\r
+<listing>\r
+<team>Tampa Bay</team>\r
+<total>3197</total>\r
+<rushing>1151</rushing>\r
+<passing>2046</passing>\r
+<AvgTotal>290.6</AvgTotal>\r
+<AvgRush>104.6</AvgRush>\r
+<AvgPass>186.0</AvgPass>\r
+</listing>\r
+<listing>\r
+<team>New York Giants</team>\r
+<total>3368</total>\r
+<rushing>1030</rushing>\r
+<passing>2338</passing>\r
+<AvgTotal>306.2</AvgTotal>\r
+<AvgRush>93.6</AvgRush>\r
+<AvgPass>212.5</AvgPass>\r
+</listing>\r
+<listing>\r
+<team>New Orleans</team>\r
+<total>3441</total>\r
+<rushing>1141</rushing>\r
+<passing>2300</passing>\r
+<AvgTotal>312.8</AvgTotal>\r
+<AvgRush>103.7</AvgRush>\r
+<AvgPass>209.1</AvgPass>\r
+</listing>\r
+<listing>\r
+<team>Chicago</team>\r
+<total>3526</total>\r
+<rushing>841</rushing>\r
+<passing>2685</passing>\r
+<AvgTotal>320.5</AvgTotal>\r
+<AvgRush>76.5</AvgRush>\r
+<AvgPass>244.1</AvgPass>\r
+</listing>\r
+<listing>\r
+<team>San Francisco</team>\r
+<total>3557</total>\r
+<rushing>1084</rushing>\r
+<passing>2473</passing>\r
+<AvgTotal>323.4</AvgTotal>\r
+<AvgRush>98.5</AvgRush>\r
+<AvgPass>224.8</AvgPass>\r
+</listing>\r
+<listing>\r
+<team>Washington</team>\r
+<total>3596</total>\r
+<rushing>1469</rushing>\r
+<passing>2127</passing>\r
+<AvgTotal>326.9</AvgTotal>\r
+<AvgRush>133.5</AvgRush>\r
+<AvgPass>193.4</AvgPass>\r
+</listing>\r
+<listing>\r
+<team>Detroit</team>\r
+<total>3832</total>\r
+<rushing>1428</rushing>\r
+<passing>2404</passing>\r
+<AvgTotal>348.4</AvgTotal>\r
+<AvgRush>129.8</AvgRush>\r
+<AvgPass>218.5</AvgPass>\r
+</listing>\r
+<listing>\r
+<team>Minnesota</team>\r
+<total>3857</total>\r
+<rushing>1468</rushing>\r
+<passing>2389</passing>\r
+<AvgTotal>350.6</AvgTotal>\r
+<AvgRush>133.5</AvgRush>\r
+<AvgPass>217.2</AvgPass>\r
+</listing>\r
+<listing>\r
+<team>Atlanta</team>\r
+<total>3872</total>\r
+<rushing>1210</rushing>\r
+<passing>2662</passing>\r
+<AvgTotal>352.0</AvgTotal>\r
+<AvgRush>110.0</AvgRush>\r
+<AvgPass>242.0</AvgPass>\r
+</listing>\r
+<listing>\r
+<team>Arizona</team>\r
+<total>4109</total>\r
+<rushing>1405</rushing>\r
+<passing>2704</passing>\r
+<AvgTotal>373.5</AvgTotal>\r
+<AvgRush>127.7</AvgRush>\r
+<AvgPass>245.8</AvgPass>\r
+</listing>\r
+<listing>\r
+<team>Carolina</team>\r
+<total>4533</total>\r
+<rushing>1724</rushing>\r
+<passing>2809</passing>\r
+<AvgTotal>377.8</AvgTotal>\r
+<AvgRush>143.7</AvgRush>\r
+<AvgPass>234.1</AvgPass>\r
+</listing>\r
+</defense_listing>\r
+</conference>\r
+<time_stamp> December 5, 2001, at 04:51 PM ET </time_stamp>\r
+</message>\r
index 37764d4609cac2c4773a32d09d41b298f6e5a2f9..cc4231c071d5e767abe5557ee97664352b46dc34 100644 (file)
@@ -190,8 +190,8 @@ dtds =
     "NFLTeamRankingsXML.dtd",
     "NFLTopKickoffReturnXML.dtd", -- no xml
     "NFLTopPerformanceXML.dtd",
-    "NFLTopPuntReturnXML.dtd", -- no dtd
-    "NFLTotalYardageXML.dtd", -- no dtd
+    "NFLTopPuntReturnXML.dtd", -- no xml
+    "NFLTotalYardageXML.dtd",
     "NFLYardsXML.dtd", -- no dtd
     "NFL_KickingLeaders_XML.dtd", -- no dtd
     "NFL_NBA_Draft_XML.dtd", -- no dtd
@@ -426,7 +426,8 @@ sport_info_test_files =
     "NFLSackLeadersXML.xml",
     "nflstandxml.xml",
     "NFLTeamRankingsXML.xml",
-    "NFLTopPerformanceXML.xml"
+    "NFLTopPerformanceXML.xml",
+    "NFLTotalYardageXML.xml"
   ]
 
 
diff --git a/test/xml/sportinfo/NFLTotalYardageXML.dtd b/test/xml/sportinfo/NFLTotalYardageXML.dtd
new file mode 100644 (file)
index 0000000..23f4153
--- /dev/null
@@ -0,0 +1,36 @@
+<!ELEMENT message  (XML_File_ID, heading , category , sport , title , conference+ , 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 conference  (offense_listing , defense_listing )>\r
+<!ATTLIST conference  name CDATA  #REQUIRED >\r
+<!ELEMENT offense_listing  (listing+ )>\r
+\r
+<!ELEMENT listing  (team , total , rushing , passing , AvgTotal , AvgRush , AvgPass )>\r
+\r
+<!ELEMENT team  (#PCDATA )>\r
+\r
+<!ELEMENT total  (#PCDATA )>\r
+\r
+<!ELEMENT rushing  (#PCDATA )>\r
+\r
+<!ELEMENT passing  (#PCDATA )>\r
+\r
+<!ELEMENT AvgTotal  (#PCDATA )>\r
+\r
+<!ELEMENT AvgRush  (#PCDATA )>\r
+\r
+<!ELEMENT AvgPass  (#PCDATA )>\r
+\r
+<!ELEMENT defense_listing  (listing+ )>\r
+\r
+<!ELEMENT time_stamp  (#PCDATA )>\r
+\r
diff --git a/test/xml/sportinfo/NFLTotalYardageXML.xml b/test/xml/sportinfo/NFLTotalYardageXML.xml
new file mode 100644 (file)
index 0000000..f343900
--- /dev/null
@@ -0,0 +1,580 @@
+<?xml version="1.0" standalone="no" ?>\r
+<!DOCTYPE message PUBLIC "-//TSN//DTD Statistics 1.0/EN" "NFLTotalYardageXML.dtd">\r
+<message>\r
+<XML_File_ID>91217</XML_File_ID>\r
+<heading>ABX%NFL-YARDAGE</heading>\r
+<category>Statistics</category>\r
+<sport>NFL</sport>\r
+<title>2001 NFL Statistics - Total Yardage</title>\r
+<conference name="American Football Conference">\r
+<offense_listing>\r
+<listing>\r
+<team>Indianapolis</team>\r
+<total>4200</total>\r
+<rushing>1328</rushing>\r
+<passing>2872</passing>\r
+<AvgTotal>381.8</AvgTotal>\r
+<AvgRush>120.7</AvgRush>\r
+<AvgPass>261.1</AvgPass>\r
+</listing>\r
+<listing>\r
+<team>Pittsburgh</team>\r
+<total>3948</total>\r
+<rushing>1973</rushing>\r
+<passing>1975</passing>\r
+<AvgTotal>358.9</AvgTotal>\r
+<AvgRush>179.4</AvgRush>\r
+<AvgPass>179.5</AvgPass>\r
+</listing>\r
+<listing>\r
+<team>Kansas City</team>\r
+<total>3834</total>\r
+<rushing>1329</rushing>\r
+<passing>2505</passing>\r
+<AvgTotal>348.5</AvgTotal>\r
+<AvgRush>120.8</AvgRush>\r
+<AvgPass>227.7</AvgPass>\r
+</listing>\r
+<listing>\r
+<team>Oakland</team>\r
+<total>3816</total>\r
+<rushing>1237</rushing>\r
+<passing>2579</passing>\r
+<AvgTotal>346.9</AvgTotal>\r
+<AvgRush>112.5</AvgRush>\r
+<AvgPass>234.5</AvgPass>\r
+</listing>\r
+<listing>\r
+<team>Baltimore</team>\r
+<total>4004</total>\r
+<rushing>1293</rushing>\r
+<passing>2711</passing>\r
+<AvgTotal>333.7</AvgTotal>\r
+<AvgRush>107.8</AvgRush>\r
+<AvgPass>225.9</AvgPass>\r
+</listing>\r
+<listing>\r
+<team>San Diego</team>\r
+<total>3806</total>\r
+<rushing>1314</rushing>\r
+<passing>2492</passing>\r
+<AvgTotal>317.2</AvgTotal>\r
+<AvgRush>109.5</AvgRush>\r
+<AvgPass>207.7</AvgPass>\r
+</listing>\r
+<listing>\r
+<team>Buffalo</team>\r
+<total>3442</total>\r
+<rushing>1065</rushing>\r
+<passing>2377</passing>\r
+<AvgTotal>312.9</AvgTotal>\r
+<AvgRush>96.8</AvgRush>\r
+<AvgPass>216.1</AvgPass>\r
+</listing>\r
+<listing>\r
+<team>Tennessee</team>\r
+<total>3433</total>\r
+<rushing>1097</rushing>\r
+<passing>2336</passing>\r
+<AvgTotal>312.1</AvgTotal>\r
+<AvgRush>99.7</AvgRush>\r
+<AvgPass>212.4</AvgPass>\r
+</listing>\r
+<listing>\r
+<team>Denver</team>\r
+<total>3723</total>\r
+<rushing>1397</rushing>\r
+<passing>2326</passing>\r
+<AvgTotal>310.3</AvgTotal>\r
+<AvgRush>116.4</AvgRush>\r
+<AvgPass>193.8</AvgPass>\r
+</listing>\r
+<listing>\r
+<team>Miami</team>\r
+<total>3398</total>\r
+<rushing>1104</rushing>\r
+<passing>2294</passing>\r
+<AvgTotal>308.9</AvgTotal>\r
+<AvgRush>100.4</AvgRush>\r
+<AvgPass>208.5</AvgPass>\r
+</listing>\r
+<listing>\r
+<team>New England</team>\r
+<total>3646</total>\r
+<rushing>1285</rushing>\r
+<passing>2361</passing>\r
+<AvgTotal>303.8</AvgTotal>\r
+<AvgRush>107.1</AvgRush>\r
+<AvgPass>196.8</AvgPass>\r
+</listing>\r
+<listing>\r
+<team>Seattle</team>\r
+<total>3228</total>\r
+<rushing>1384</rushing>\r
+<passing>1844</passing>\r
+<AvgTotal>293.5</AvgTotal>\r
+<AvgRush>125.8</AvgRush>\r
+<AvgPass>167.6</AvgPass>\r
+</listing>\r
+<listing>\r
+<team>Jacksonville</team>\r
+<total>3212</total>\r
+<rushing>923</rushing>\r
+<passing>2289</passing>\r
+<AvgTotal>292.0</AvgTotal>\r
+<AvgRush>83.9</AvgRush>\r
+<AvgPass>208.1</AvgPass>\r
+</listing>\r
+<listing>\r
+<team>New York Jets</team>\r
+<total>3138</total>\r
+<rushing>1460</rushing>\r
+<passing>1678</passing>\r
+<AvgTotal>285.3</AvgTotal>\r
+<AvgRush>132.7</AvgRush>\r
+<AvgPass>152.5</AvgPass>\r
+</listing>\r
+<listing>\r
+<team>Cincinnati</team>\r
+<total>3091</total>\r
+<rushing>1141</rushing>\r
+<passing>1950</passing>\r
+<AvgTotal>281.0</AvgTotal>\r
+<AvgRush>103.7</AvgRush>\r
+<AvgPass>177.3</AvgPass>\r
+</listing>\r
+<listing>\r
+<team>Cleveland</team>\r
+<total>2736</total>\r
+<rushing>928</rushing>\r
+<passing>1808</passing>\r
+<AvgTotal>248.7</AvgTotal>\r
+<AvgRush>84.4</AvgRush>\r
+<AvgPass>164.4</AvgPass>\r
+</listing>\r
+</offense_listing>\r
+<defense_listing>\r
+<listing>\r
+<team>Pittsburgh</team>\r
+<total>2842</total>\r
+<rushing>793</rushing>\r
+<passing>2049</passing>\r
+<AvgTotal>258.4</AvgTotal>\r
+<AvgRush>72.1</AvgRush>\r
+<AvgPass>186.3</AvgPass>\r
+</listing>\r
+<listing>\r
+<team>Baltimore</team>\r
+<total>3297</total>\r
+<rushing>894</rushing>\r
+<passing>2403</passing>\r
+<AvgTotal>274.8</AvgTotal>\r
+<AvgRush>74.5</AvgRush>\r
+<AvgPass>200.3</AvgPass>\r
+</listing>\r
+<listing>\r
+<team>Miami</team>\r
+<total>3118</total>\r
+<rushing>1156</rushing>\r
+<passing>1962</passing>\r
+<AvgTotal>283.5</AvgTotal>\r
+<AvgRush>105.1</AvgRush>\r
+<AvgPass>178.4</AvgPass>\r
+</listing>\r
+<listing>\r
+<team>Denver</team>\r
+<total>3432</total>\r
+<rushing>1083</rushing>\r
+<passing>2349</passing>\r
+<AvgTotal>286.0</AvgTotal>\r
+<AvgRush>90.3</AvgRush>\r
+<AvgPass>195.8</AvgPass>\r
+</listing>\r
+<listing>\r
+<team>Cincinnati</team>\r
+<total>3321</total>\r
+<rushing>1213</rushing>\r
+<passing>2108</passing>\r
+<AvgTotal>301.9</AvgTotal>\r
+<AvgRush>110.3</AvgRush>\r
+<AvgPass>191.6</AvgPass>\r
+</listing>\r
+<listing>\r
+<team>San Diego</team>\r
+<total>3702</total>\r
+<rushing>1169</rushing>\r
+<passing>2533</passing>\r
+<AvgTotal>308.5</AvgTotal>\r
+<AvgRush>97.4</AvgRush>\r
+<AvgPass>211.1</AvgPass>\r
+</listing>\r
+<listing>\r
+<team>New York Jets</team>\r
+<total>3462</total>\r
+<rushing>1456</rushing>\r
+<passing>2006</passing>\r
+<AvgTotal>314.7</AvgTotal>\r
+<AvgRush>132.4</AvgRush>\r
+<AvgPass>182.4</AvgPass>\r
+</listing>\r
+<listing>\r
+<team>Cleveland</team>\r
+<total>3536</total>\r
+<rushing>1368</rushing>\r
+<passing>2168</passing>\r
+<AvgTotal>321.5</AvgTotal>\r
+<AvgRush>124.4</AvgRush>\r
+<AvgPass>197.1</AvgPass>\r
+</listing>\r
+<listing>\r
+<team>Seattle</team>\r
+<total>3553</total>\r
+<rushing>1188</rushing>\r
+<passing>2365</passing>\r
+<AvgTotal>323.0</AvgTotal>\r
+<AvgRush>108.0</AvgRush>\r
+<AvgPass>215.0</AvgPass>\r
+</listing>\r
+<listing>\r
+<team>Oakland</team>\r
+<total>3555</total>\r
+<rushing>1413</rushing>\r
+<passing>2142</passing>\r
+<AvgTotal>323.2</AvgTotal>\r
+<AvgRush>128.5</AvgRush>\r
+<AvgPass>194.7</AvgPass>\r
+</listing>\r
+<listing>\r
+<team>Kansas City</team>\r
+<total>3556</total>\r
+<rushing>1470</rushing>\r
+<passing>2086</passing>\r
+<AvgTotal>323.3</AvgTotal>\r
+<AvgRush>133.6</AvgRush>\r
+<AvgPass>189.6</AvgPass>\r
+</listing>\r
+<listing>\r
+<team>Buffalo</team>\r
+<total>3573</total>\r
+<rushing>1509</rushing>\r
+<passing>2064</passing>\r
+<AvgTotal>324.8</AvgTotal>\r
+<AvgRush>137.2</AvgRush>\r
+<AvgPass>187.6</AvgPass>\r
+</listing>\r
+<listing>\r
+<team>Tennessee</team>\r
+<total>3640</total>\r
+<rushing>985</rushing>\r
+<passing>2655</passing>\r
+<AvgTotal>330.9</AvgTotal>\r
+<AvgRush>89.5</AvgRush>\r
+<AvgPass>241.4</AvgPass>\r
+</listing>\r
+<listing>\r
+<team>New England</team>\r
+<total>4075</total>\r
+<rushing>1444</rushing>\r
+<passing>2631</passing>\r
+<AvgTotal>339.6</AvgTotal>\r
+<AvgRush>120.3</AvgRush>\r
+<AvgPass>219.3</AvgPass>\r
+</listing>\r
+<listing>\r
+<team>Jacksonville</team>\r
+<total>3749</total>\r
+<rushing>1215</rushing>\r
+<passing>2534</passing>\r
+<AvgTotal>340.8</AvgTotal>\r
+<AvgRush>110.5</AvgRush>\r
+<AvgPass>230.4</AvgPass>\r
+</listing>\r
+<listing>\r
+<team>Indianapolis</team>\r
+<total>3880</total>\r
+<rushing>1461</rushing>\r
+<passing>2419</passing>\r
+<AvgTotal>352.7</AvgTotal>\r
+<AvgRush>132.8</AvgRush>\r
+<AvgPass>219.9</AvgPass>\r
+</listing>\r
+</defense_listing>\r
+</conference>\r
+<conference name="National Football Conference">\r
+<offense_listing>\r
+<listing>\r
+<team>St. Louis</team>\r
+<total>4587</total>\r
+<rushing>1325</rushing>\r
+<passing>3262</passing>\r
+<AvgTotal>417.0</AvgTotal>\r
+<AvgRush>120.5</AvgRush>\r
+<AvgPass>296.5</AvgPass>\r
+</listing>\r
+<listing>\r
+<team>San Francisco</team>\r
+<total>4248</total>\r
+<rushing>1705</rushing>\r
+<passing>2543</passing>\r
+<AvgTotal>386.2</AvgTotal>\r
+<AvgRush>155.0</AvgRush>\r
+<AvgPass>231.2</AvgPass>\r
+</listing>\r
+<listing>\r
+<team>New Orleans</team>\r
+<total>3927</total>\r
+<rushing>1349</rushing>\r
+<passing>2578</passing>\r
+<AvgTotal>357.0</AvgTotal>\r
+<AvgRush>122.6</AvgRush>\r
+<AvgPass>234.4</AvgPass>\r
+</listing>\r
+<listing>\r
+<team>Green Bay</team>\r
+<total>3901</total>\r
+<rushing>1112</rushing>\r
+<passing>2789</passing>\r
+<AvgTotal>354.6</AvgTotal>\r
+<AvgRush>101.1</AvgRush>\r
+<AvgPass>253.5</AvgPass>\r
+</listing>\r
+<listing>\r
+<team>Minnesota</team>\r
+<total>3680</total>\r
+<rushing>1068</rushing>\r
+<passing>2612</passing>\r
+<AvgTotal>334.5</AvgTotal>\r
+<AvgRush>97.1</AvgRush>\r
+<AvgPass>237.5</AvgPass>\r
+</listing>\r
+<listing>\r
+<team>Arizona</team>\r
+<total>3560</total>\r
+<rushing>1003</rushing>\r
+<passing>2557</passing>\r
+<AvgTotal>323.6</AvgTotal>\r
+<AvgRush>91.2</AvgRush>\r
+<AvgPass>232.5</AvgPass>\r
+</listing>\r
+<listing>\r
+<team>Detroit</team>\r
+<total>3523</total>\r
+<rushing>867</rushing>\r
+<passing>2656</passing>\r
+<AvgTotal>320.3</AvgTotal>\r
+<AvgRush>78.8</AvgRush>\r
+<AvgPass>241.5</AvgPass>\r
+</listing>\r
+<listing>\r
+<team>New York Giants</team>\r
+<total>3482</total>\r
+<rushing>1184</rushing>\r
+<passing>2298</passing>\r
+<AvgTotal>316.5</AvgTotal>\r
+<AvgRush>107.6</AvgRush>\r
+<AvgPass>208.9</AvgPass>\r
+</listing>\r
+<listing>\r
+<team>Philadelphia</team>\r
+<total>3414</total>\r
+<rushing>1342</rushing>\r
+<passing>2072</passing>\r
+<AvgTotal>310.4</AvgTotal>\r
+<AvgRush>122.0</AvgRush>\r
+<AvgPass>188.4</AvgPass>\r
+</listing>\r
+<listing>\r
+<team>Atlanta</team>\r
+<total>3392</total>\r
+<rushing>1331</rushing>\r
+<passing>2061</passing>\r
+<AvgTotal>308.4</AvgTotal>\r
+<AvgRush>121.0</AvgRush>\r
+<AvgPass>187.4</AvgPass>\r
+</listing>\r
+<listing>\r
+<team>Tampa Bay</team>\r
+<total>3287</total>\r
+<rushing>878</rushing>\r
+<passing>2409</passing>\r
+<AvgTotal>298.8</AvgTotal>\r
+<AvgRush>79.8</AvgRush>\r
+<AvgPass>219.0</AvgPass>\r
+</listing>\r
+<listing>\r
+<team>Chicago</team>\r
+<total>3241</total>\r
+<rushing>1121</rushing>\r
+<passing>2120</passing>\r
+<AvgTotal>294.6</AvgTotal>\r
+<AvgRush>101.9</AvgRush>\r
+<AvgPass>192.7</AvgPass>\r
+</listing>\r
+<listing>\r
+<team>Dallas</team>\r
+<total>2868</total>\r
+<rushing>1512</rushing>\r
+<passing>1356</passing>\r
+<AvgTotal>260.7</AvgTotal>\r
+<AvgRush>137.5</AvgRush>\r
+<AvgPass>123.3</AvgPass>\r
+</listing>\r
+<listing>\r
+<team>Washington</team>\r
+<total>2846</total>\r
+<rushing>1221</rushing>\r
+<passing>1625</passing>\r
+<AvgTotal>258.7</AvgTotal>\r
+<AvgRush>111.0</AvgRush>\r
+<AvgPass>147.7</AvgPass>\r
+</listing>\r
+<listing>\r
+<team>Carolina</team>\r
+<total>2981</total>\r
+<rushing>909</rushing>\r
+<passing>2072</passing>\r
+<AvgTotal>248.4</AvgTotal>\r
+<AvgRush>75.8</AvgRush>\r
+<AvgPass>172.7</AvgPass>\r
+</listing>\r
+</offense_listing>\r
+<defense_listing>\r
+<listing>\r
+<team>St. Louis</team>\r
+<total>3023</total>\r
+<rushing>954</rushing>\r
+<passing>2069</passing>\r
+<AvgTotal>274.8</AvgTotal>\r
+<AvgRush>86.7</AvgRush>\r
+<AvgPass>188.1</AvgPass>\r
+</listing>\r
+<listing>\r
+<team>Philadelphia</team>\r
+<total>3046</total>\r
+<rushing>1267</rushing>\r
+<passing>1779</passing>\r
+<AvgTotal>276.9</AvgTotal>\r
+<AvgRush>115.2</AvgRush>\r
+<AvgPass>161.7</AvgPass>\r
+</listing>\r
+<listing>\r
+<team>Green Bay</team>\r
+<total>3162</total>\r
+<rushing>1039</rushing>\r
+<passing>2123</passing>\r
+<AvgTotal>287.5</AvgTotal>\r
+<AvgRush>94.5</AvgRush>\r
+<AvgPass>193.0</AvgPass>\r
+</listing>\r
+<listing>\r
+<team>Dallas</team>\r
+<total>3182</total>\r
+<rushing>1157</rushing>\r
+<passing>2025</passing>\r
+<AvgTotal>289.3</AvgTotal>\r
+<AvgRush>105.2</AvgRush>\r
+<AvgPass>184.1</AvgPass>\r
+</listing>\r
+<listing>\r
+<team>Tampa Bay</team>\r
+<total>3197</total>\r
+<rushing>1151</rushing>\r
+<passing>2046</passing>\r
+<AvgTotal>290.6</AvgTotal>\r
+<AvgRush>104.6</AvgRush>\r
+<AvgPass>186.0</AvgPass>\r
+</listing>\r
+<listing>\r
+<team>New York Giants</team>\r
+<total>3368</total>\r
+<rushing>1030</rushing>\r
+<passing>2338</passing>\r
+<AvgTotal>306.2</AvgTotal>\r
+<AvgRush>93.6</AvgRush>\r
+<AvgPass>212.5</AvgPass>\r
+</listing>\r
+<listing>\r
+<team>New Orleans</team>\r
+<total>3441</total>\r
+<rushing>1141</rushing>\r
+<passing>2300</passing>\r
+<AvgTotal>312.8</AvgTotal>\r
+<AvgRush>103.7</AvgRush>\r
+<AvgPass>209.1</AvgPass>\r
+</listing>\r
+<listing>\r
+<team>Chicago</team>\r
+<total>3526</total>\r
+<rushing>841</rushing>\r
+<passing>2685</passing>\r
+<AvgTotal>320.5</AvgTotal>\r
+<AvgRush>76.5</AvgRush>\r
+<AvgPass>244.1</AvgPass>\r
+</listing>\r
+<listing>\r
+<team>San Francisco</team>\r
+<total>3557</total>\r
+<rushing>1084</rushing>\r
+<passing>2473</passing>\r
+<AvgTotal>323.4</AvgTotal>\r
+<AvgRush>98.5</AvgRush>\r
+<AvgPass>224.8</AvgPass>\r
+</listing>\r
+<listing>\r
+<team>Washington</team>\r
+<total>3596</total>\r
+<rushing>1469</rushing>\r
+<passing>2127</passing>\r
+<AvgTotal>326.9</AvgTotal>\r
+<AvgRush>133.5</AvgRush>\r
+<AvgPass>193.4</AvgPass>\r
+</listing>\r
+<listing>\r
+<team>Detroit</team>\r
+<total>3832</total>\r
+<rushing>1428</rushing>\r
+<passing>2404</passing>\r
+<AvgTotal>348.4</AvgTotal>\r
+<AvgRush>129.8</AvgRush>\r
+<AvgPass>218.5</AvgPass>\r
+</listing>\r
+<listing>\r
+<team>Minnesota</team>\r
+<total>3857</total>\r
+<rushing>1468</rushing>\r
+<passing>2389</passing>\r
+<AvgTotal>350.6</AvgTotal>\r
+<AvgRush>133.5</AvgRush>\r
+<AvgPass>217.2</AvgPass>\r
+</listing>\r
+<listing>\r
+<team>Atlanta</team>\r
+<total>3872</total>\r
+<rushing>1210</rushing>\r
+<passing>2662</passing>\r
+<AvgTotal>352.0</AvgTotal>\r
+<AvgRush>110.0</AvgRush>\r
+<AvgPass>242.0</AvgPass>\r
+</listing>\r
+<listing>\r
+<team>Arizona</team>\r
+<total>4109</total>\r
+<rushing>1405</rushing>\r
+<passing>2704</passing>\r
+<AvgTotal>373.5</AvgTotal>\r
+<AvgRush>127.7</AvgRush>\r
+<AvgPass>245.8</AvgPass>\r
+</listing>\r
+<listing>\r
+<team>Carolina</team>\r
+<total>4533</total>\r
+<rushing>1724</rushing>\r
+<passing>2809</passing>\r
+<AvgTotal>377.8</AvgTotal>\r
+<AvgRush>143.7</AvgRush>\r
+<AvgPass>234.1</AvgPass>\r
+</listing>\r
+</defense_listing>\r
+</conference>\r
+<time_stamp> December 5, 2001, at 04:51 PM ET </time_stamp>\r
+</message>\r