From 5fef8ad6148a61581359c9b35e813e2618962b85 Mon Sep 17 00:00:00 2001 From: Michael Orlitzky Date: Sun, 22 Jun 2014 17:27:11 -0400 Subject: [PATCH] Add SportInfo support for nbadivisionsxml.dtd. --- doc/man1/htsn-import.1 | 2 + schema/nbadivisionsxml.dtd | 32 ++ schemagen/nbadivisionsxml/nbadivisionsxml.xml | 293 ++++++++++++++++++ src/TSN/XML/SportInfo.hs | 5 +- test/xml/sportinfo/nbadivisionsxml.dtd | 32 ++ test/xml/sportinfo/nbadivisionsxml.xml | 293 ++++++++++++++++++ 6 files changed, 655 insertions(+), 2 deletions(-) create mode 100644 schema/nbadivisionsxml.dtd create mode 100644 schemagen/nbadivisionsxml/nbadivisionsxml.xml create mode 100644 test/xml/sportinfo/nbadivisionsxml.dtd create mode 100644 test/xml/sportinfo/nbadivisionsxml.xml diff --git a/doc/man1/htsn-import.1 b/doc/man1/htsn-import.1 index db23378..7b01aea 100644 --- a/doc/man1/htsn-import.1 +++ b/doc/man1/htsn-import.1 @@ -280,6 +280,8 @@ NBABlocksXML.dtd nbaconfrecxml.dtd .IP \[bu] nbadaysxml.dtd +.IP \[bu] +nbadivisionsxml.dtd .RE .P The GameInfo and SportInfo types do not have their own top-level diff --git a/schema/nbadivisionsxml.dtd b/schema/nbadivisionsxml.dtd new file mode 100644 index 0000000..3aaad01 --- /dev/null +++ b/schema/nbadivisionsxml.dtd @@ -0,0 +1,32 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/schemagen/nbadivisionsxml/nbadivisionsxml.xml b/schemagen/nbadivisionsxml/nbadivisionsxml.xml new file mode 100644 index 0000000..47d3777 --- /dev/null +++ b/schemagen/nbadivisionsxml/nbadivisionsxml.xml @@ -0,0 +1,293 @@ + + + +2210615 +ACX%DIVISIONS +Statistics +NBA +2004-2005 NBA Statistics - Versus All Divisions + ++Atlanta +0-0 +0-0 +0-0 +0-0 +0-0 +0-0 + ++Boston +0-0 +0-0 +0-0 +0-0 +0-0 +0-0 + ++Charlotte +0-0 +0-0 +0-0 +0-0 +0-0 +0-0 + ++Chicago +0-0 +0-0 +0-0 +0-0 +0-0 +0-0 + ++Cleveland +0-0 +0-0 +0-0 +0-0 +0-0 +0-0 + ++Detroit +0-0 +0-0 +0-0 +0-0 +0-0 +0-0 + ++Indiana +0-0 +0-0 +0-0 +0-0 +0-0 +0-0 + ++Miami +0-0 +0-0 +0-0 +0-0 +0-0 +0-0 + ++Milwaukee +0-0 +0-0 +0-0 +0-0 +0-0 +0-0 + ++New Jersey +0-0 +0-0 +0-0 +0-0 +0-0 +0-0 + ++New York +0-0 +0-0 +0-0 +0-0 +0-0 +0-0 + ++Orlando +0-0 +0-0 +0-0 +0-0 +0-0 +0-0 + ++Philadelphia +0-0 +0-0 +0-0 +0-0 +0-0 +0-0 + ++Toronto +0-0 +0-0 +0-0 +0-0 +0-0 +0-0 + ++Washington +0-0 +0-0 +0-0 +0-0 +0-0 +0-0 + + + ++Dallas +0-0 +0-0 +0-0 +0-0 +0-0 +0-0 + ++Denver +0-0 +0-0 +0-0 +0-0 +0-0 +0-0 + ++Golden State +0-0 +0-0 +0-0 +0-0 +0-0 +0-0 + ++Houston +0-0 +0-0 +0-0 +0-0 +0-0 +0-0 + ++Los Angeles +0-0 +0-0 +0-0 +0-0 +0-0 +0-0 + ++Los Angeles +0-0 +0-0 +0-0 +0-0 +0-0 +0-0 + ++Memphis +0-0 +0-0 +0-0 +0-0 +0-0 +0-0 + ++Minnesota +0-0 +0-0 +0-0 +0-0 +0-0 +0-0 + ++New Orleans +0-0 +0-0 +0-0 +0-0 +0-0 +0-0 + ++Phoenix +0-0 +0-0 +0-0 +0-0 +0-0 +0-0 + ++Portland +0-0 +0-0 +0-0 +0-0 +0-0 +0-0 + ++Sacramento +0-0 +0-0 +0-0 +0-0 +0-0 +0-0 + ++San Antonio +0-0 +0-0 +0-0 +0-0 +0-0 +0-0 + ++Seattle +0-0 +0-0 +0-0 +0-0 +0-0 +0-0 + ++Utah +0-0 +0-0 +0-0 +0-0 +0-0 +0-0 + ++ + + + + + + + + + November 1, 2004, at 12:21 PM ET + diff --git a/src/TSN/XML/SportInfo.hs b/src/TSN/XML/SportInfo.hs index 1e307cd..ba31ba2 100644 --- a/src/TSN/XML/SportInfo.hs +++ b/src/TSN/XML/SportInfo.hs @@ -158,7 +158,7 @@ dtds = "NBABlocksXML.dtd", "nbaconfrecxml.dtd", "nbadaysxml.dtd", - "nbadivisionsxml.dtd", -- no dtd + "nbadivisionsxml.dtd", "NBAFGPctXML.dtd", -- no dtd "NBAFoulsXML.dtd", -- no dtd "NBAFTPctXML.dtd", -- no dtd @@ -401,7 +401,8 @@ sport_info_test_files = "NBAAssistsXML.xml", "NBABlocksXML.xml", "nbaconfrecxml.xml", - "nbadaysxml.xml" + "nbadaysxml.xml", + "nbadivisionsxml.xml" ] diff --git a/test/xml/sportinfo/nbadivisionsxml.dtd b/test/xml/sportinfo/nbadivisionsxml.dtd new file mode 100644 index 0000000..3aaad01 --- /dev/null +++ b/test/xml/sportinfo/nbadivisionsxml.dtd @@ -0,0 +1,32 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/test/xml/sportinfo/nbadivisionsxml.xml b/test/xml/sportinfo/nbadivisionsxml.xml new file mode 100644 index 0000000..47d3777 --- /dev/null +++ b/test/xml/sportinfo/nbadivisionsxml.xml @@ -0,0 +1,293 @@ + + + +2210615 +ACX%DIVISIONS +Statistics +NBA +2004-2005 NBA Statistics - Versus All Divisions + ++Atlanta +0-0 +0-0 +0-0 +0-0 +0-0 +0-0 + ++Boston +0-0 +0-0 +0-0 +0-0 +0-0 +0-0 + ++Charlotte +0-0 +0-0 +0-0 +0-0 +0-0 +0-0 + ++Chicago +0-0 +0-0 +0-0 +0-0 +0-0 +0-0 + ++Cleveland +0-0 +0-0 +0-0 +0-0 +0-0 +0-0 + ++Detroit +0-0 +0-0 +0-0 +0-0 +0-0 +0-0 + ++Indiana +0-0 +0-0 +0-0 +0-0 +0-0 +0-0 + ++Miami +0-0 +0-0 +0-0 +0-0 +0-0 +0-0 + ++Milwaukee +0-0 +0-0 +0-0 +0-0 +0-0 +0-0 + ++New Jersey +0-0 +0-0 +0-0 +0-0 +0-0 +0-0 + ++New York +0-0 +0-0 +0-0 +0-0 +0-0 +0-0 + ++Orlando +0-0 +0-0 +0-0 +0-0 +0-0 +0-0 + ++Philadelphia +0-0 +0-0 +0-0 +0-0 +0-0 +0-0 + ++Toronto +0-0 +0-0 +0-0 +0-0 +0-0 +0-0 + ++Washington +0-0 +0-0 +0-0 +0-0 +0-0 +0-0 + + + ++Dallas +0-0 +0-0 +0-0 +0-0 +0-0 +0-0 + ++Denver +0-0 +0-0 +0-0 +0-0 +0-0 +0-0 + ++Golden State +0-0 +0-0 +0-0 +0-0 +0-0 +0-0 + ++Houston +0-0 +0-0 +0-0 +0-0 +0-0 +0-0 + ++Los Angeles +0-0 +0-0 +0-0 +0-0 +0-0 +0-0 + ++Los Angeles +0-0 +0-0 +0-0 +0-0 +0-0 +0-0 + ++Memphis +0-0 +0-0 +0-0 +0-0 +0-0 +0-0 + ++Minnesota +0-0 +0-0 +0-0 +0-0 +0-0 +0-0 + ++New Orleans +0-0 +0-0 +0-0 +0-0 +0-0 +0-0 + ++Phoenix +0-0 +0-0 +0-0 +0-0 +0-0 +0-0 + ++Portland +0-0 +0-0 +0-0 +0-0 +0-0 +0-0 + ++Sacramento +0-0 +0-0 +0-0 +0-0 +0-0 +0-0 + ++San Antonio +0-0 +0-0 +0-0 +0-0 +0-0 +0-0 + ++Seattle +0-0 +0-0 +0-0 +0-0 +0-0 +0-0 + ++Utah +0-0 +0-0 +0-0 +0-0 +0-0 +0-0 + ++ + + + + + + + + + November 1, 2004, at 12:21 PM ET + -- 2.43.2