From: Michael Orlitzky Date: Sun, 22 Jun 2014 21:22:09 +0000 (-0400) Subject: Add SportInfo support for nbadaysxml.dtd. X-Git-Tag: 0.0.6~120 X-Git-Url: http://gitweb.michael.orlitzky.com/?p=dead%2Fhtsn-import.git;a=commitdiff_plain;h=fa5044902a2893455bbaeed18194feb379126aa8 Add SportInfo support for nbadaysxml.dtd. --- diff --git a/doc/man1/htsn-import.1 b/doc/man1/htsn-import.1 index 4e5ed6a..db23378 100644 --- a/doc/man1/htsn-import.1 +++ b/doc/man1/htsn-import.1 @@ -278,6 +278,8 @@ NBAAssistsXML.dtd NBABlocksXML.dtd .IP \[bu] nbaconfrecxml.dtd +.IP \[bu] +nbadaysxml.dtd .RE .P The GameInfo and SportInfo types do not have their own top-level diff --git a/schema/nbadaysxml.dtd b/schema/nbadaysxml.dtd new file mode 100644 index 0000000..429c4b7 --- /dev/null +++ b/schema/nbadaysxml.dtd @@ -0,0 +1,34 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/schemagen/nbadaysxml/nbadaysxml.xml b/schemagen/nbadaysxml/nbadaysxml.xml new file mode 100644 index 0000000..50c49b7 --- /dev/null +++ b/schemagen/nbadaysxml/nbadaysxml.xml @@ -0,0 +1,304 @@ + + + +10161617 +ACX%NBA-DAYS +Statistics +NBA +2000-2001 NBA Statistics - Days-of-the-week + ++Atlanta +0-2 +6-4 +1-3 +1-4 +2-5 +4-5 +0-0 + ++Boston +1-3 +1-4 +5-2 +2-1 +3-6 +0-7 +2-1 + ++Charlotte +1-2 +3-2 +6-2 +0-4 +7-2 +5-3 +1-2 + ++Chicago +0-3 +0-9 +1-2 +4-2 +0-6 +0-6 +1-3 + ++Cleveland +2-0 +5-4 +4-4 +0-1 +3-5 +4-5 +0-0 + ++Detroit +0-0 +3-3 +4-5 +1-2 +3-3 +1-5 +2-6 + ++Indiana +3-0 +3-5 +3-4 +0-4 +5-3 +4-4 +0-1 + ++Miami +1-0 +4-3 +6-4 +1-0 +4-5 +6-4 +1-1 + ++Milwaukee +2-0 +6-2 +4-2 +4-2 +2-2 +4-5 +1-2 + ++New Jersey +2-2 +2-5 +2-4 +0-5 +2-2 +4-5 +0-3 + ++New York +3-0 +2-3 +2-5 +3-3 +6-1 +5-1 +3-0 + ++Orlando +2-3 +2-6 +0-3 +4-3 +1-3 +6-1 +2-1 + ++Philadelphia +2-2 +3-1 +7-3 +1-0 +7-2 +8-1 +0-0 + ++Toronto +0-1 +3-7 +2-3 +3-1 +4-4 +4-1 +3-2 + ++Washington +0-1 +2-5 +1-8 +0-3 +0-7 +2-6 +2-2 + + + ++Dallas +5-1 +3-3 +3-4 +2-2 +5-1 +4-3 +2-2 + ++Denver +3-1 +2-2 +4-4 +3-4 +4-0 +4-4 +2-1 + ++Golden State +0-2 +3-2 +1-6 +1-3 +3-4 +3-6 +0-3 + ++Houston +1-2 +7-4 +0-2 +7-1 +0-1 +4-7 +0-2 + ++LA Clippers +1-6 +1-3 +5-3 +1-2 +2-5 +2-5 +1-4 + ++LA Lakers +2-1 +5-2 +2-4 +3-1 +5-1 +2-2 +6-1 + ++Minnesota +2-3 +4-3 +2-4 +3-2 +4-2 +5-4 +1-0 + ++Phoenix +1-0 +2-3 +4-1 +4-1 +2-4 +6-2 +3-2 + ++Portland +4-1 +4-3 +5-1 +5-1 +3-2 +6-2 +2-1 + ++Sacramento +3-0 +6-1 +3-4 +1-1 +6-2 +3-2 +3-0 + ++San Antonio +1-1 +6-2 +4-1 +2-3 +2-4 +7-2 +1-0 + ++Seattle +0-2 +5-3 +5-3 +2-1 +5-2 +2-6 +2-2 + ++Utah +2-2 +4-3 +5-2 +2-1 +4-3 +6-2 +1-0 + ++Vancouver +1-4 +2-2 +4-2 +1-3 +0-7 +1-6 +2-2 + + + January 17, 2001, at 03:19 PM ET + diff --git a/src/TSN/XML/SportInfo.hs b/src/TSN/XML/SportInfo.hs index f54e09a..1e307cd 100644 --- a/src/TSN/XML/SportInfo.hs +++ b/src/TSN/XML/SportInfo.hs @@ -157,7 +157,7 @@ dtds = "NBAAssistsXML.dtd", "NBABlocksXML.dtd", "nbaconfrecxml.dtd", - "nbadaysxml.dtd", -- no dtd + "nbadaysxml.dtd", "nbadivisionsxml.dtd", -- no dtd "NBAFGPctXML.dtd", -- no dtd "NBAFoulsXML.dtd", -- no dtd @@ -400,7 +400,8 @@ sport_info_test_files = "NBA3PPctXML.xml", "NBAAssistsXML.xml", "NBABlocksXML.xml", - "nbaconfrecxml.xml" + "nbaconfrecxml.xml", + "nbadaysxml.xml" ] diff --git a/test/xml/sportinfo/nbadaysxml.dtd b/test/xml/sportinfo/nbadaysxml.dtd new file mode 100644 index 0000000..429c4b7 --- /dev/null +++ b/test/xml/sportinfo/nbadaysxml.dtd @@ -0,0 +1,34 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/test/xml/sportinfo/nbadaysxml.xml b/test/xml/sportinfo/nbadaysxml.xml new file mode 100644 index 0000000..50c49b7 --- /dev/null +++ b/test/xml/sportinfo/nbadaysxml.xml @@ -0,0 +1,304 @@ + + + +10161617 +ACX%NBA-DAYS +Statistics +NBA +2000-2001 NBA Statistics - Days-of-the-week + ++Atlanta +0-2 +6-4 +1-3 +1-4 +2-5 +4-5 +0-0 + ++Boston +1-3 +1-4 +5-2 +2-1 +3-6 +0-7 +2-1 + ++Charlotte +1-2 +3-2 +6-2 +0-4 +7-2 +5-3 +1-2 + ++Chicago +0-3 +0-9 +1-2 +4-2 +0-6 +0-6 +1-3 + ++Cleveland +2-0 +5-4 +4-4 +0-1 +3-5 +4-5 +0-0 + ++Detroit +0-0 +3-3 +4-5 +1-2 +3-3 +1-5 +2-6 + ++Indiana +3-0 +3-5 +3-4 +0-4 +5-3 +4-4 +0-1 + ++Miami +1-0 +4-3 +6-4 +1-0 +4-5 +6-4 +1-1 + ++Milwaukee +2-0 +6-2 +4-2 +4-2 +2-2 +4-5 +1-2 + ++New Jersey +2-2 +2-5 +2-4 +0-5 +2-2 +4-5 +0-3 + ++New York +3-0 +2-3 +2-5 +3-3 +6-1 +5-1 +3-0 + ++Orlando +2-3 +2-6 +0-3 +4-3 +1-3 +6-1 +2-1 + ++Philadelphia +2-2 +3-1 +7-3 +1-0 +7-2 +8-1 +0-0 + ++Toronto +0-1 +3-7 +2-3 +3-1 +4-4 +4-1 +3-2 + ++Washington +0-1 +2-5 +1-8 +0-3 +0-7 +2-6 +2-2 + + + ++Dallas +5-1 +3-3 +3-4 +2-2 +5-1 +4-3 +2-2 + ++Denver +3-1 +2-2 +4-4 +3-4 +4-0 +4-4 +2-1 + ++Golden State +0-2 +3-2 +1-6 +1-3 +3-4 +3-6 +0-3 + ++Houston +1-2 +7-4 +0-2 +7-1 +0-1 +4-7 +0-2 + ++LA Clippers +1-6 +1-3 +5-3 +1-2 +2-5 +2-5 +1-4 + ++LA Lakers +2-1 +5-2 +2-4 +3-1 +5-1 +2-2 +6-1 + ++Minnesota +2-3 +4-3 +2-4 +3-2 +4-2 +5-4 +1-0 + ++Phoenix +1-0 +2-3 +4-1 +4-1 +2-4 +6-2 +3-2 + ++Portland +4-1 +4-3 +5-1 +5-1 +3-2 +6-2 +2-1 + ++Sacramento +3-0 +6-1 +3-4 +1-1 +6-2 +3-2 +3-0 + ++San Antonio +1-1 +6-2 +4-1 +2-3 +2-4 +7-2 +1-0 + ++Seattle +0-2 +5-3 +5-3 +2-1 +5-2 +2-6 +2-2 + ++Utah +2-2 +4-3 +5-2 +2-1 +4-3 +6-2 +1-0 + ++Vancouver +1-4 +2-2 +4-2 +1-3 +0-7 +1-6 +2-2 + + + January 17, 2001, at 03:19 PM ET +