From 507d72e766f48eb5c162134d67523bcaf2d16a43 Mon Sep 17 00:00:00 2001 From: Michael Orlitzky Date: Mon, 23 Jun 2014 10:33:32 -0400 Subject: [PATCH] Add SportInfo support for NFLTopPerformanceXML.dtd. --- doc/man1/htsn-import.1 | 2 + schema/NFLTopPerformanceXML.dtd | 18 ++++ .../NFLTopPerformanceXML.xml | 83 +++++++++++++++++++ src/TSN/XML/SportInfo.hs | 7 +- test/xml/sportinfo/NFLTopPerformanceXML.dtd | 18 ++++ test/xml/sportinfo/NFLTopPerformanceXML.xml | 83 +++++++++++++++++++ 6 files changed, 208 insertions(+), 3 deletions(-) create mode 100644 schema/NFLTopPerformanceXML.dtd create mode 100644 schemagen/NFLTopPerformanceXML/NFLTopPerformanceXML.xml create mode 100644 test/xml/sportinfo/NFLTopPerformanceXML.dtd create mode 100644 test/xml/sportinfo/NFLTopPerformanceXML.xml diff --git a/doc/man1/htsn-import.1 b/doc/man1/htsn-import.1 index 5bfaf27..220a7e0 100644 --- a/doc/man1/htsn-import.1 +++ b/doc/man1/htsn-import.1 @@ -328,6 +328,8 @@ NFLSackLeadersXML.dtd nflstandxml.dtd .IP \[bu] NFLTeamRankingsXML.dtd +.IP \[bu] +NFLTopPerformanceXML.dtd .RE .P The GameInfo and SportInfo types do not have their own top-level diff --git a/schema/NFLTopPerformanceXML.dtd b/schema/NFLTopPerformanceXML.dtd new file mode 100644 index 0000000..2f48102 --- /dev/null +++ b/schema/NFLTopPerformanceXML.dtd @@ -0,0 +1,18 @@ + + + + + + + + + + + + + + + + + + diff --git a/schemagen/NFLTopPerformanceXML/NFLTopPerformanceXML.xml b/schemagen/NFLTopPerformanceXML/NFLTopPerformanceXML.xml new file mode 100644 index 0000000..043f7fb --- /dev/null +++ b/schemagen/NFLTopPerformanceXML/NFLTopPerformanceXML.xml @@ -0,0 +1,83 @@ + + + +178111 +ABX%AFC-BEST +Stats +NFL +Final 2001 AFC Statistics - Top Single Game Performances ++18, (9 times in Non-Overtime Games) + ++421, Manning, Ind. vs. Buff., 9/23 + ++91, Brady, N.E. at Ind., 10/21 + ++4, (3 times in Non-Overtime Games) + ++266, Alexander, Sea. vs. Oak., 11/11 + ++36, Tomlinson, S.D. vs. Wash., 9/9 + ++96, Dillon, Cin. at Det., 10/28 + ++14, R. Smith, Denv. at Ariz., 9/23 + ++196, Moulds, Buff. vs. Miami, 11/25 + ++250, Jenkins, S.D. at Oak., 11/18 + ++8, Wilkins, Ind. at Balt., 12/2 + ++101, Mason, Tenn. at Cin., 11/18 + ++126, Houshmandzadeh, Cin. at Clev., 11/25 + ++6, (3 times in Non-Overtime Games) + ++88, Brown, Oak. vs. K.C., 12/9 + ++4, O'Neal, Denv. vs. K.C., 10/7 + ++100, Marion, Miami vs. Buff., 1/6 + ++4.0, (3 times in Non-Overtime Games) + ++277, Holmes, K.C. at Oak., 12/9 + ++77, Turk, Miami at Buff., 11/25 + ++10, Feagles, Sea. vs. Phil., 9/23 +10, Hentrich, Tenn. at Balt., 10/7 + ++5, K. Brown, Pitt. at Clev., 11/11 (OT) + ++5, (3 times in Non-Overtime Games) + ++55, K. Brown, Pitt. at K.C., 10/14 + + January 10, 2002, at 04:23 PM ET + diff --git a/src/TSN/XML/SportInfo.hs b/src/TSN/XML/SportInfo.hs index 7f6b8c4..37764d4 100644 --- a/src/TSN/XML/SportInfo.hs +++ b/src/TSN/XML/SportInfo.hs @@ -188,8 +188,8 @@ dtds = "nflstandxml.dtd", "NFLTackleFFLeadersXML.dtd", -- no xml "NFLTeamRankingsXML.dtd", - "NFLTopKickoffReturnXML.dtd", -- no dtd - "NFLTopPerformanceXML.dtd", -- no dtd + "NFLTopKickoffReturnXML.dtd", -- no xml + "NFLTopPerformanceXML.dtd", "NFLTopPuntReturnXML.dtd", -- no dtd "NFLTotalYardageXML.dtd", -- no dtd "NFLYardsXML.dtd", -- no dtd @@ -425,7 +425,8 @@ sport_info_test_files = "NFLQBStartsXML.xml", "NFLSackLeadersXML.xml", "nflstandxml.xml", - "NFLTeamRankingsXML.xml" + "NFLTeamRankingsXML.xml", + "NFLTopPerformanceXML.xml" ] diff --git a/test/xml/sportinfo/NFLTopPerformanceXML.dtd b/test/xml/sportinfo/NFLTopPerformanceXML.dtd new file mode 100644 index 0000000..2f48102 --- /dev/null +++ b/test/xml/sportinfo/NFLTopPerformanceXML.dtd @@ -0,0 +1,18 @@ + + + + + + + + + + + + + + + + + + diff --git a/test/xml/sportinfo/NFLTopPerformanceXML.xml b/test/xml/sportinfo/NFLTopPerformanceXML.xml new file mode 100644 index 0000000..043f7fb --- /dev/null +++ b/test/xml/sportinfo/NFLTopPerformanceXML.xml @@ -0,0 +1,83 @@ + + + +178111 +ABX%AFC-BEST +Stats +NFL +Final 2001 AFC Statistics - Top Single Game Performances ++18, (9 times in Non-Overtime Games) + ++421, Manning, Ind. vs. Buff., 9/23 + ++91, Brady, N.E. at Ind., 10/21 + ++4, (3 times in Non-Overtime Games) + ++266, Alexander, Sea. vs. Oak., 11/11 + ++36, Tomlinson, S.D. vs. Wash., 9/9 + ++96, Dillon, Cin. at Det., 10/28 + ++14, R. Smith, Denv. at Ariz., 9/23 + ++196, Moulds, Buff. vs. Miami, 11/25 + ++250, Jenkins, S.D. at Oak., 11/18 + ++8, Wilkins, Ind. at Balt., 12/2 + ++101, Mason, Tenn. at Cin., 11/18 + ++126, Houshmandzadeh, Cin. at Clev., 11/25 + ++6, (3 times in Non-Overtime Games) + ++88, Brown, Oak. vs. K.C., 12/9 + ++4, O'Neal, Denv. vs. K.C., 10/7 + ++100, Marion, Miami vs. Buff., 1/6 + ++4.0, (3 times in Non-Overtime Games) + ++277, Holmes, K.C. at Oak., 12/9 + ++77, Turk, Miami at Buff., 11/25 + ++10, Feagles, Sea. vs. Phil., 9/23 +10, Hentrich, Tenn. at Balt., 10/7 + ++5, K. Brown, Pitt. at Clev., 11/11 (OT) + ++5, (3 times in Non-Overtime Games) + ++55, K. Brown, Pitt. at K.C., 10/14 + + January 10, 2002, at 04:23 PM ET + -- 2.43.2