From: Michael Orlitzky Date: Mon, 23 Jun 2014 14:01:19 +0000 (-0400) Subject: Add SportInfo support for nflstandxml.dtd. X-Git-Tag: 0.0.6~97 X-Git-Url: https://gitweb.michael.orlitzky.com/?a=commitdiff_plain;h=d879d374cda9cef637af6322916ad2324fae9154;p=dead%2Fhtsn-import.git Add SportInfo support for nflstandxml.dtd. --- diff --git a/doc/man1/htsn-import.1 b/doc/man1/htsn-import.1 index 03f9543..f9bb1a1 100644 --- a/doc/man1/htsn-import.1 +++ b/doc/man1/htsn-import.1 @@ -324,6 +324,8 @@ NFLPassLeadXML.dtd NFLQBStartsXML.dtd .IP \[bu] NFLSackLeadersXML.dtd +.IP \[bu] +nflstandxml.dtd .RE .P The GameInfo and SportInfo types do not have their own top-level diff --git a/schema/nflstandxml.dtd b/schema/nflstandxml.dtd new file mode 100644 index 0000000..b26f029 --- /dev/null +++ b/schema/nflstandxml.dtd @@ -0,0 +1,25 @@ + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/schemagen/nflstandxml/nflstandxml.xml b/schemagen/nflstandxml/nflstandxml.xml new file mode 100644 index 0000000..6dfd808 --- /dev/null +++ b/schemagen/nflstandxml/nflstandxml.xml @@ -0,0 +1,498 @@ + + + + 14966193 + ABL!NFL-STANDINGS + Standings + NFL + NFL Standings + + + + NY Giants + 9 + 7 + 0 + .563 + 394 + 400 + 4-4 + 5-3 + 3-3 + 5-7 + y + + + Philadelphia + 8 + 8 + 0 + .500 + 396 + 328 + 3-5 + 5-3 + 5-1 + 6-6 + + + + + Dallas + 8 + 8 + 0 + .500 + 369 + 347 + 5-3 + 3-5 + 2-4 + 6-6 + + + + + Washington + 5 + 11 + 0 + .313 + 288 + 367 + 2-6 + 3-5 + 2-4 + 5-7 + + + + + + + Green Bay + 15 + 1 + 0 + .938 + 560 + 359 + 8-0 + 7-1 + 6-0 + 12-0 + y + + + Detroit + 10 + 6 + 0 + .625 + 474 + 387 + 5-3 + 5-3 + 3-3 + 6-6 + x + + + Chicago + 8 + 8 + 0 + .500 + 353 + 341 + 5-3 + 3-5 + 3-3 + 7-5 + + + + + Minnesota + 3 + 13 + 0 + .188 + 340 + 449 + 1-7 + 2-6 + 0-6 + 3-9 + + + + + + + New Orleans + 13 + 3 + 0 + .813 + 547 + 339 + 8-0 + 5-3 + 5-1 + 9-3 + y + + + Atlanta + 10 + 6 + 0 + .625 + 402 + 350 + 6-2 + 4-4 + 3-3 + 7-5 + x + + + Carolina + 6 + 10 + 0 + .375 + 406 + 429 + 3-5 + 3-5 + 2-4 + 3-9 + + + + + Tampa Bay + 4 + 12 + 0 + .250 + 287 + 494 + 3-5 + 1-7 + 2-4 + 3-9 + + + + + + + San Francisco + 13 + 3 + 0 + .813 + 380 + 229 + 7-1 + 6-2 + 5-1 + 10-2 + y + + + Arizona + 8 + 8 + 0 + .500 + 312 + 348 + 6-2 + 2-6 + 4-2 + 7-5 + + + + + Seattle + 7 + 9 + 0 + .438 + 321 + 315 + 4-4 + 3-5 + 3-3 + 6-6 + + + + + St. Louis + 2 + 14 + 0 + .125 + 193 + 407 + 1-7 + 1-7 + 0-6 + 1-11 + + + + + + + + + New England + 13 + 3 + 0 + .813 + 513 + 342 + 7-1 + 6-2 + 5-1 + 10-2 + y + + + NY Jets + 8 + 8 + 0 + .500 + 377 + 363 + 6-2 + 2-6 + 3-3 + 6-6 + + + + + Buffalo + 6 + 10 + 0 + .375 + 372 + 434 + 5-3 + 1-7 + 1-5 + 4-8 + + + + + Miami + 6 + 10 + 0 + .375 + 329 + 313 + 4-4 + 2-6 + 3-3 + 5-7 + + + + + + + Baltimore + 12 + 4 + 0 + .750 + 378 + 266 + 8-0 + 4-4 + 6-0 + 9-3 + y + + + Pittsburgh + 12 + 4 + 0 + .750 + 325 + 227 + 7-1 + 5-3 + 4-2 + 9-3 + x + + + Cincinnati + 9 + 7 + 0 + .563 + 344 + 323 + 4-4 + 5-3 + 2-4 + 6-6 + x + + + Cleveland + 4 + 12 + 0 + .250 + 218 + 307 + 3-5 + 1-7 + 0-6 + 3-9 + + + + + + + Houston + 10 + 6 + 0 + .625 + 381 + 278 + 5-3 + 5-3 + 4-2 + 8-4 + y + + + Tennessee + 9 + 7 + 0 + .563 + 325 + 317 + 5-3 + 4-4 + 3-3 + 7-5 + + + + + Jacksonville + 5 + 11 + 0 + .313 + 243 + 329 + 4-4 + 1-7 + 3-3 + 4-8 + + + + + Indianapolis + 2 + 14 + 0 + .125 + 243 + 430 + 2-6 + 0-8 + 2-4 + 2-10 + + + + + + + Denver + 8 + 8 + 0 + .500 + 309 + 390 + 3-5 + 5-3 + 3-3 + 6-6 + y + + + San Diego + 8 + 8 + 0 + .500 + 406 + 377 + 5-3 + 3-5 + 3-3 + 7-5 + + + + + Oakland + 8 + 8 + 0 + .500 + 359 + 433 + 3-5 + 5-3 + 3-3 + 6-6 + + + + + Kansas City + 7 + 9 + 0 + .438 + 212 + 338 + 3-5 + 4-4 + 3-3 + 4-8 + + + + + + January 2, 2012, at 12:11 PM ET + diff --git a/src/TSN/XML/SportInfo.hs b/src/TSN/XML/SportInfo.hs index c1da0e9..c00eda9 100644 --- a/src/TSN/XML/SportInfo.hs +++ b/src/TSN/XML/SportInfo.hs @@ -185,8 +185,8 @@ dtds = "NFLReceivingLeadersXML.dtd", -- no xml "NFLRushingLeadersXML.dtd", -- no xml "NFLSackLeadersXML.dtd", - "nflstandxml.dtd", -- no dtd - "NFLTackleFFLeadersXML.dtd", -- no dtd + "nflstandxml.dtd", + "NFLTackleFFLeadersXML.dtd", -- no xml "NFLTeamRankingsXML.dtd", -- no dtd "NFLTopKickoffReturnXML.dtd", -- no dtd "NFLTopPerformanceXML.dtd", -- no dtd @@ -423,7 +423,8 @@ sport_info_test_files = "NFLMondayNightXML.xml", "NFLPassLeadXML.xml", "NFLQBStartsXML.xml", - "NFLSackLeadersXML.xml" + "NFLSackLeadersXML.xml", + "nflstandxml.xml" ] diff --git a/test/xml/sportinfo/nflstandxml.dtd b/test/xml/sportinfo/nflstandxml.dtd new file mode 100644 index 0000000..b26f029 --- /dev/null +++ b/test/xml/sportinfo/nflstandxml.dtd @@ -0,0 +1,25 @@ + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/test/xml/sportinfo/nflstandxml.xml b/test/xml/sportinfo/nflstandxml.xml new file mode 100644 index 0000000..6dfd808 --- /dev/null +++ b/test/xml/sportinfo/nflstandxml.xml @@ -0,0 +1,498 @@ + + + + 14966193 + ABL!NFL-STANDINGS + Standings + NFL + NFL Standings + + + + NY Giants + 9 + 7 + 0 + .563 + 394 + 400 + 4-4 + 5-3 + 3-3 + 5-7 + y + + + Philadelphia + 8 + 8 + 0 + .500 + 396 + 328 + 3-5 + 5-3 + 5-1 + 6-6 + + + + + Dallas + 8 + 8 + 0 + .500 + 369 + 347 + 5-3 + 3-5 + 2-4 + 6-6 + + + + + Washington + 5 + 11 + 0 + .313 + 288 + 367 + 2-6 + 3-5 + 2-4 + 5-7 + + + + + + + Green Bay + 15 + 1 + 0 + .938 + 560 + 359 + 8-0 + 7-1 + 6-0 + 12-0 + y + + + Detroit + 10 + 6 + 0 + .625 + 474 + 387 + 5-3 + 5-3 + 3-3 + 6-6 + x + + + Chicago + 8 + 8 + 0 + .500 + 353 + 341 + 5-3 + 3-5 + 3-3 + 7-5 + + + + + Minnesota + 3 + 13 + 0 + .188 + 340 + 449 + 1-7 + 2-6 + 0-6 + 3-9 + + + + + + + New Orleans + 13 + 3 + 0 + .813 + 547 + 339 + 8-0 + 5-3 + 5-1 + 9-3 + y + + + Atlanta + 10 + 6 + 0 + .625 + 402 + 350 + 6-2 + 4-4 + 3-3 + 7-5 + x + + + Carolina + 6 + 10 + 0 + .375 + 406 + 429 + 3-5 + 3-5 + 2-4 + 3-9 + + + + + Tampa Bay + 4 + 12 + 0 + .250 + 287 + 494 + 3-5 + 1-7 + 2-4 + 3-9 + + + + + + + San Francisco + 13 + 3 + 0 + .813 + 380 + 229 + 7-1 + 6-2 + 5-1 + 10-2 + y + + + Arizona + 8 + 8 + 0 + .500 + 312 + 348 + 6-2 + 2-6 + 4-2 + 7-5 + + + + + Seattle + 7 + 9 + 0 + .438 + 321 + 315 + 4-4 + 3-5 + 3-3 + 6-6 + + + + + St. Louis + 2 + 14 + 0 + .125 + 193 + 407 + 1-7 + 1-7 + 0-6 + 1-11 + + + + + + + + + New England + 13 + 3 + 0 + .813 + 513 + 342 + 7-1 + 6-2 + 5-1 + 10-2 + y + + + NY Jets + 8 + 8 + 0 + .500 + 377 + 363 + 6-2 + 2-6 + 3-3 + 6-6 + + + + + Buffalo + 6 + 10 + 0 + .375 + 372 + 434 + 5-3 + 1-7 + 1-5 + 4-8 + + + + + Miami + 6 + 10 + 0 + .375 + 329 + 313 + 4-4 + 2-6 + 3-3 + 5-7 + + + + + + + Baltimore + 12 + 4 + 0 + .750 + 378 + 266 + 8-0 + 4-4 + 6-0 + 9-3 + y + + + Pittsburgh + 12 + 4 + 0 + .750 + 325 + 227 + 7-1 + 5-3 + 4-2 + 9-3 + x + + + Cincinnati + 9 + 7 + 0 + .563 + 344 + 323 + 4-4 + 5-3 + 2-4 + 6-6 + x + + + Cleveland + 4 + 12 + 0 + .250 + 218 + 307 + 3-5 + 1-7 + 0-6 + 3-9 + + + + + + + Houston + 10 + 6 + 0 + .625 + 381 + 278 + 5-3 + 5-3 + 4-2 + 8-4 + y + + + Tennessee + 9 + 7 + 0 + .563 + 325 + 317 + 5-3 + 4-4 + 3-3 + 7-5 + + + + + Jacksonville + 5 + 11 + 0 + .313 + 243 + 329 + 4-4 + 1-7 + 3-3 + 4-8 + + + + + Indianapolis + 2 + 14 + 0 + .125 + 243 + 430 + 2-6 + 0-8 + 2-4 + 2-10 + + + + + + + Denver + 8 + 8 + 0 + .500 + 309 + 390 + 3-5 + 5-3 + 3-3 + 6-6 + y + + + San Diego + 8 + 8 + 0 + .500 + 406 + 377 + 5-3 + 3-5 + 3-3 + 7-5 + + + + + Oakland + 8 + 8 + 0 + .500 + 359 + 433 + 3-5 + 5-3 + 3-3 + 6-6 + + + + + Kansas City + 7 + 9 + 0 + .438 + 212 + 338 + 3-5 + 4-4 + 3-3 + 4-8 + + + + + + January 2, 2012, at 12:11 PM ET +