From: Michael Orlitzky Date: Mon, 23 Jun 2014 18:23:09 +0000 (-0400) Subject: Add SportInfo support for Weekly_Sched_XML.dtd. X-Git-Tag: 0.0.6~88 X-Git-Url: https://gitweb.michael.orlitzky.com/?a=commitdiff_plain;h=698ab20d3aae8ee6bbdd4b8ec01567f863393093;p=dead%2Fhtsn-import.git Add SportInfo support for Weekly_Sched_XML.dtd. --- diff --git a/doc/man1/htsn-import.1 b/doc/man1/htsn-import.1 index d49beab..d3e762c 100644 --- a/doc/man1/htsn-import.1 +++ b/doc/man1/htsn-import.1 @@ -342,6 +342,8 @@ NFL_Roster_XML.dtd NFL_Team_Stats_XML.dtd .IP \[bu] Transactions_XML.dtd +.IP \[bu] +Weekly_Sched_XML.dtd .RE .P The GameInfo and SportInfo types do not have their own top-level diff --git a/schema/Weekly_Sched_XML.dtd b/schema/Weekly_Sched_XML.dtd new file mode 100644 index 0000000..829ad28 --- /dev/null +++ b/schema/Weekly_Sched_XML.dtd @@ -0,0 +1,18 @@ + + + + + + + + + + + + + + + + + + diff --git a/schemagen/Weekly_Sched_XML/Weekly_Sched_XML.xml b/schemagen/Weekly_Sched_XML/Weekly_Sched_XML.xml new file mode 100644 index 0000000..b981d37 --- /dev/null +++ b/schemagen/Weekly_Sched_XML/Weekly_Sched_XML.xml @@ -0,0 +1,154 @@ + + + +2210516 +ACL!NBA-WEEKLY-SCHEDULE +Statistics +NBA +2004 National Basketball Association Weekly Schedule + ++New Jersey 96, Charlotte 89 + ++New Orleans 92, Philadelphia 89 + ++Indiana 93, Minnesota 92 + ++Chicago 95, Boston 92 + ++Milwaukee 107, Dallas 105 + ++Phoenix 104, San Antonio 96 + ++Utah 113, New York 89 + ++LA Clippers 96, Golden State 81 + ++LA Lakers 105, Sacramento 80 + + + ++Memphis at Atlanta, 11:00 a.m. + ++Washington at Detroit, 7 p.m. + ++Charlotte at Cleveland, 7:30 p.m. + ++Utah at Phoenix, 10 p.m. + + + ++Portland at Toronto, 7 p.m. + ++Denver at LA Clippers, 7:30 p.m. + ++Orlando at New Orleans, 8 p.m. + ++Milwaukee at Memphis, 8 p.m. + ++New York at Dallas, 8:30 p.m. + ++Chicago at Houston, 8:30 p.m. + ++Philadelphia at San Antonio, 8:30 p.m. + ++Golden State at LA Lakers, 10:30 p.m. + + + ++Portland at Charlotte, 7 p.m. + ++New Jersey at Boston, 7:30 p.m. + ++Denver at Golden State, 7:30 p.m. + ++Miami at Atlanta, 8 p.m. + ++Washington at Detroit, 8 p.m. + ++New York at Minnesota, 8 p.m. + ++Sacramento at Utah, 9 p.m. + ++LA Clippers at LA Lakers, 10:30 p.m. + + + ++Houston at Orlando, 7 p.m. + ++Cleveland at Boston, 7:30 p.m. + ++New Jersey at Philadelphia, 7:30 p.m. + ++Indiana at Minnesota, 8 p.m. + ++Atlanta at Memphis, 8 p.m. + ++Toronto at Chicago, 8:30 p.m. + ++Seattle at San Antonio, 8:30 p.m. + ++Dallas at Milwaukee, 8:30 p.m. + ++New Orleans at Sacramento, 10 p.m. + + + ++Utah at Detroit, 6 p.m. + ++Dallas at New York, 7 p.m. + ++Charlotte at Washington, 7 p.m. + ++Indiana at Denver, 9 p.m. + ++New Orleans at LA Clippers, 9 p.m. + ++Phoenix at LA Lakers, 10:30 p.m. + + + October 20, 2004, at 01:04 PM ET + diff --git a/src/TSN/XML/SportInfo.hs b/src/TSN/XML/SportInfo.hs index eadbc98..6901dfa 100644 --- a/src/TSN/XML/SportInfo.hs +++ b/src/TSN/XML/SportInfo.hs @@ -199,7 +199,7 @@ dtds = "NFL_Roster_XML.dtd", "NFL_Team_Stats_XML.dtd", "Transactions_XML.dtd", - "Weekly_Sched_XML.dtd", -- no dtd + "Weekly_Sched_XML.dtd", "WNBA_Team_Leaders_XML.dtd", -- no dtd "WNBA3PPctXML.dtd", -- no dtd "WNBAAssistsXML.dtd", -- no dtd @@ -432,7 +432,8 @@ sport_info_test_files = "NFL_NBA_Draft_XML.xml", "NFL_Roster_XML.xml", "NFL_Team_Stats_XML.xml", - "Transactions_XML.xml" + "Transactions_XML.xml", + "Weekly_Sched_XML.xml" ] diff --git a/test/xml/sportinfo/Weekly_Sched_XML.dtd b/test/xml/sportinfo/Weekly_Sched_XML.dtd new file mode 100644 index 0000000..829ad28 --- /dev/null +++ b/test/xml/sportinfo/Weekly_Sched_XML.dtd @@ -0,0 +1,18 @@ + + + + + + + + + + + + + + + + + + diff --git a/test/xml/sportinfo/Weekly_Sched_XML.xml b/test/xml/sportinfo/Weekly_Sched_XML.xml new file mode 100644 index 0000000..b981d37 --- /dev/null +++ b/test/xml/sportinfo/Weekly_Sched_XML.xml @@ -0,0 +1,154 @@ + + + +2210516 +ACL!NBA-WEEKLY-SCHEDULE +Statistics +NBA +2004 National Basketball Association Weekly Schedule + ++New Jersey 96, Charlotte 89 + ++New Orleans 92, Philadelphia 89 + ++Indiana 93, Minnesota 92 + ++Chicago 95, Boston 92 + ++Milwaukee 107, Dallas 105 + ++Phoenix 104, San Antonio 96 + ++Utah 113, New York 89 + ++LA Clippers 96, Golden State 81 + ++LA Lakers 105, Sacramento 80 + + + ++Memphis at Atlanta, 11:00 a.m. + ++Washington at Detroit, 7 p.m. + ++Charlotte at Cleveland, 7:30 p.m. + ++Utah at Phoenix, 10 p.m. + + + ++Portland at Toronto, 7 p.m. + ++Denver at LA Clippers, 7:30 p.m. + ++Orlando at New Orleans, 8 p.m. + ++Milwaukee at Memphis, 8 p.m. + ++New York at Dallas, 8:30 p.m. + ++Chicago at Houston, 8:30 p.m. + ++Philadelphia at San Antonio, 8:30 p.m. + ++Golden State at LA Lakers, 10:30 p.m. + + + ++Portland at Charlotte, 7 p.m. + ++New Jersey at Boston, 7:30 p.m. + ++Denver at Golden State, 7:30 p.m. + ++Miami at Atlanta, 8 p.m. + ++Washington at Detroit, 8 p.m. + ++New York at Minnesota, 8 p.m. + ++Sacramento at Utah, 9 p.m. + ++LA Clippers at LA Lakers, 10:30 p.m. + + + ++Houston at Orlando, 7 p.m. + ++Cleveland at Boston, 7:30 p.m. + ++New Jersey at Philadelphia, 7:30 p.m. + ++Indiana at Minnesota, 8 p.m. + ++Atlanta at Memphis, 8 p.m. + ++Toronto at Chicago, 8:30 p.m. + ++Seattle at San Antonio, 8:30 p.m. + ++Dallas at Milwaukee, 8:30 p.m. + ++New Orleans at Sacramento, 10 p.m. + + + ++Utah at Detroit, 6 p.m. + ++Dallas at New York, 7 p.m. + ++Charlotte at Washington, 7 p.m. + ++Indiana at Denver, 9 p.m. + ++New Orleans at LA Clippers, 9 p.m. + ++Phoenix at LA Lakers, 10:30 p.m. + + + October 20, 2004, at 01:04 PM ET +