From: Michael Orlitzky Date: Mon, 23 Jun 2014 14:04:04 +0000 (-0400) Subject: Add SportInfo support for NFLTeamRankingsXML.dtd. X-Git-Tag: 0.0.6~96 X-Git-Url: https://gitweb.michael.orlitzky.com/?a=commitdiff_plain;h=027e4df59c88c87889df312d8778f6d466b1c615;p=dead%2Fhtsn-import.git Add SportInfo support for NFLTeamRankingsXML.dtd. --- diff --git a/doc/man1/htsn-import.1 b/doc/man1/htsn-import.1 index f9bb1a1..5bfaf27 100644 --- a/doc/man1/htsn-import.1 +++ b/doc/man1/htsn-import.1 @@ -326,6 +326,8 @@ NFLQBStartsXML.dtd NFLSackLeadersXML.dtd .IP \[bu] nflstandxml.dtd +.IP \[bu] +NFLTeamRankingsXML.dtd .RE .P The GameInfo and SportInfo types do not have their own top-level diff --git a/schema/NFLTeamRankingsXML.dtd b/schema/NFLTeamRankingsXML.dtd new file mode 100644 index 0000000..ba95966 --- /dev/null +++ b/schema/NFLTeamRankingsXML.dtd @@ -0,0 +1,34 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/schemagen/NFLTeamRankingsXML/NFLTeamRankingsXML.xml b/schemagen/NFLTeamRankingsXML/NFLTeamRankingsXML.xml new file mode 100644 index 0000000..c11f92b --- /dev/null +++ b/schemagen/NFLTeamRankingsXML/NFLTeamRankingsXML.xml @@ -0,0 +1,295 @@ + + + +8191717 +ABX%NFLTEAMRANKINGS +Statistics +NFL +2001 NFL Statistics - Team Rankings + ++Baltimore +5 +11 +4 +2 +2 +9 + ++Buffalo +6 +13 +5 +9 +13 +5 + ++Cincinnati +13 +12 +12 +5 +8 +8 + ++Cleveland +16 +15 +15 +7 +11 +6 + ++Denver +9 +6 +10 +4 +4 +10 + ++Indianapolis +1 +3 +1 +16 +14 +12 + ++Jacksonville +14 +16 +9 +14 +9 +14 + ++Kansas City +3 +5 +2 +10 +15 +3 + ++Miami +8 +10 +6 +3 +6 +4 + ++New England +10 +8 +11 +15 +10 +15 + ++New York Jets +15 +2 +16 +11 +16 +2 + ++Oakland +4 +7 +3 +8 +12 +7 + ++Pittsburgh +2 +*1 +13 +*1 +*1 +1 + ++San Diego +7 +9 +7 +6 +5 +11 + ++Seattle +12 +4 +14 +12 +7 +13 + ++Tennessee +11 +14 +8 +13 +3 +16 + + + ++Arizona +7 +12 +5 +14 +13 +14 + ++Atlanta +9 +6 +11 +11 +9 +13 + ++Carolina +13 +15 +13 +15 +15 +10 + ++Chicago +12 +11 +10 +7 +1 +15 + ++Dallas +15 +2 +15 +4 +6 +2 + ++Detroit +6 +14 +3 +13 +14 +11 + ++Green Bay +3 +9 +2 +3 +4 +3 + ++Minnesota +5 +10 +6 +12 +12 +9 + ++New Orleans +4 +4 +7 +9 +7 +8 + ++New York Giants +8 +8 +9 +6 +3 +7 + ++Philadelphia +11 +5 +12 +2 +10 +*1 + ++St. Louis +*1 +3 +*1 +1 +2 +5 + ++San Francisco +2 +1 +4 +10 +5 +12 + ++Tampa Bay +10 +13 +8 +5 +8 +4 + ++Washington +14 +7 +14 +8 +11 +6 + + +* - League Leader +T - Tied for position + December 4, 2001, at 11:00 AM ET + diff --git a/src/TSN/XML/SportInfo.hs b/src/TSN/XML/SportInfo.hs index c00eda9..7f6b8c4 100644 --- a/src/TSN/XML/SportInfo.hs +++ b/src/TSN/XML/SportInfo.hs @@ -187,7 +187,7 @@ dtds = "NFLSackLeadersXML.dtd", "nflstandxml.dtd", "NFLTackleFFLeadersXML.dtd", -- no xml - "NFLTeamRankingsXML.dtd", -- no dtd + "NFLTeamRankingsXML.dtd", "NFLTopKickoffReturnXML.dtd", -- no dtd "NFLTopPerformanceXML.dtd", -- no dtd "NFLTopPuntReturnXML.dtd", -- no dtd @@ -424,7 +424,8 @@ sport_info_test_files = "NFLPassLeadXML.xml", "NFLQBStartsXML.xml", "NFLSackLeadersXML.xml", - "nflstandxml.xml" + "nflstandxml.xml", + "NFLTeamRankingsXML.xml" ] diff --git a/test/xml/sportinfo/NFLTeamRankingsXML.dtd b/test/xml/sportinfo/NFLTeamRankingsXML.dtd new file mode 100644 index 0000000..ba95966 --- /dev/null +++ b/test/xml/sportinfo/NFLTeamRankingsXML.dtd @@ -0,0 +1,34 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/test/xml/sportinfo/NFLTeamRankingsXML.xml b/test/xml/sportinfo/NFLTeamRankingsXML.xml new file mode 100644 index 0000000..c11f92b --- /dev/null +++ b/test/xml/sportinfo/NFLTeamRankingsXML.xml @@ -0,0 +1,295 @@ + + + +8191717 +ABX%NFLTEAMRANKINGS +Statistics +NFL +2001 NFL Statistics - Team Rankings + ++Baltimore +5 +11 +4 +2 +2 +9 + ++Buffalo +6 +13 +5 +9 +13 +5 + ++Cincinnati +13 +12 +12 +5 +8 +8 + ++Cleveland +16 +15 +15 +7 +11 +6 + ++Denver +9 +6 +10 +4 +4 +10 + ++Indianapolis +1 +3 +1 +16 +14 +12 + ++Jacksonville +14 +16 +9 +14 +9 +14 + ++Kansas City +3 +5 +2 +10 +15 +3 + ++Miami +8 +10 +6 +3 +6 +4 + ++New England +10 +8 +11 +15 +10 +15 + ++New York Jets +15 +2 +16 +11 +16 +2 + ++Oakland +4 +7 +3 +8 +12 +7 + ++Pittsburgh +2 +*1 +13 +*1 +*1 +1 + ++San Diego +7 +9 +7 +6 +5 +11 + ++Seattle +12 +4 +14 +12 +7 +13 + ++Tennessee +11 +14 +8 +13 +3 +16 + + + ++Arizona +7 +12 +5 +14 +13 +14 + ++Atlanta +9 +6 +11 +11 +9 +13 + ++Carolina +13 +15 +13 +15 +15 +10 + ++Chicago +12 +11 +10 +7 +1 +15 + ++Dallas +15 +2 +15 +4 +6 +2 + ++Detroit +6 +14 +3 +13 +14 +11 + ++Green Bay +3 +9 +2 +3 +4 +3 + ++Minnesota +5 +10 +6 +12 +12 +9 + ++New Orleans +4 +4 +7 +9 +7 +8 + ++New York Giants +8 +8 +9 +6 +3 +7 + ++Philadelphia +11 +5 +12 +2 +10 +*1 + ++St. Louis +*1 +3 +*1 +1 +2 +5 + ++San Francisco +2 +1 +4 +10 +5 +12 + ++Tampa Bay +10 +13 +8 +5 +8 +4 + ++Washington +14 +7 +14 +8 +11 +6 + + +* - League Leader +T - Tied for position + December 4, 2001, at 11:00 AM ET +