From: Michael Orlitzky Date: Sun, 22 Jun 2014 22:31:49 +0000 (-0400) Subject: Add SportInfo support for nbastandxml.dtd. X-Git-Tag: 0.0.6~112 X-Git-Url: https://gitweb.michael.orlitzky.com/?a=commitdiff_plain;h=d17a0f2e4774b23a0b348cb6be75cc64f81d8460;p=dead%2Fhtsn-import.git Add SportInfo support for nbastandxml.dtd. --- diff --git a/doc/man1/htsn-import.1 b/doc/man1/htsn-import.1 index a9ed675..f6f50ae 100644 --- a/doc/man1/htsn-import.1 +++ b/doc/man1/htsn-import.1 @@ -294,6 +294,8 @@ NBAMinutesXML.dtd NBAReboundsXML.dtd .IP \[bu] NBAScorersXML.dtd +.IP \[bu] +nbastandxml.dtd .RE .P The GameInfo and SportInfo types do not have their own top-level diff --git a/schema/nbastandxml.dtd b/schema/nbastandxml.dtd new file mode 100644 index 0000000..fdc0d54 --- /dev/null +++ b/schema/nbastandxml.dtd @@ -0,0 +1,38 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/schemagen/nbastandxml/nbastandxml.xml b/schemagen/nbastandxml/nbastandxml.xml new file mode 100644 index 0000000..9ab326d --- /dev/null +++ b/schemagen/nbastandxml/nbastandxml.xml @@ -0,0 +1,205 @@ + + + +2267393 +ACL!NBA-STANDINGS +Standings +NBA + + ++Boston +00.000 +---0-00-0 +0-0--- + ++New Jersey +00.000 +---0-00-0 +0-0--- + ++New York +00.000 +---0-00-0 +0-0--- + ++Philadelphia +00.000 +---0-00-0 +0-0--- + ++Toronto +00.000 +---0-00-0 +0-0--- + + + ++Chicago +00.000 +---0-00-0 +0-0--- + ++Cleveland +00.000 +---0-00-0 +0-0--- + ++Detroit +00.000 +---0-00-0 +0-0--- + ++Indiana +00.000 +---0-00-0 +0-0--- + ++Milwaukee +00.000 +---0-00-0 +0-0--- + + + ++Atlanta +00.000 +---0-00-0 +0-0--- + ++Charlotte +00.000 +---0-00-0 +0-0--- + ++Miami +00.000 +---0-00-0 +0-0--- + ++Orlando +00.000 +---0-00-0 +0-0--- + ++Washington +00.000 +---0-00-0 +0-0--- + + + + + ++Dallas +00.000 +---0-00-0 +0-0--- + ++Houston +00.000 +---0-00-0 +0-0--- + ++Memphis +00.000 +---0-00-0 +0-0--- + ++New Orleans +00.000 +---0-00-0 +0-0--- + ++San Antonio +00.000 +---0-00-0 +0-0--- + + + ++Denver +00.000 +---0-00-0 +0-0--- + ++Minnesota +00.000 +---0-00-0 +0-0--- + ++Portland +00.000 +---0-00-0 +0-0--- + ++Seattle +00.000 +---0-00-0 +0-0--- + ++Utah +00.000 +---0-00-0 +0-0--- + + + ++Golden State +00.000 +---0-00-0 +0-0--- + ++LA Clippers +00.000 +---0-00-0 +0-0--- + ++LA Lakers +00.000 +---0-00-0 +0-0--- + ++Phoenix +00.000 +---0-00-0 +0-0--- + ++Sacramento +00.000 +---0-00-0 +0-0--- + + + + November 2, 2004, at 01:02 PM ET + diff --git a/src/TSN/XML/SportInfo.hs b/src/TSN/XML/SportInfo.hs index 3f7461a..b98292a 100644 --- a/src/TSN/XML/SportInfo.hs +++ b/src/TSN/XML/SportInfo.hs @@ -165,7 +165,7 @@ dtds = "NBAMinutesXML.dtd", "NBAReboundsXML.dtd", "NBAScorersXML.dtd", - "nbastandxml.dtd", -- no dtd + "nbastandxml.dtd", "NBAStealsXML.dtd", -- no dtd "nbateamleadersxml.dtd", -- no dtd "nbatripledoublexml.dtd", -- no dtd @@ -408,7 +408,8 @@ sport_info_test_files = "NBAFTPctXML.xml", "NBAMinutesXML.xml", "NBAReboundsXML.xml", - "NBAScorersXML.xml" + "NBAScorersXML.xml", + "nbastandxml.xml" ] diff --git a/test/xml/sportinfo/nbastandxml.dtd b/test/xml/sportinfo/nbastandxml.dtd new file mode 100644 index 0000000..fdc0d54 --- /dev/null +++ b/test/xml/sportinfo/nbastandxml.dtd @@ -0,0 +1,38 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/test/xml/sportinfo/nbastandxml.xml b/test/xml/sportinfo/nbastandxml.xml new file mode 100644 index 0000000..9ab326d --- /dev/null +++ b/test/xml/sportinfo/nbastandxml.xml @@ -0,0 +1,205 @@ + + + +2267393 +ACL!NBA-STANDINGS +Standings +NBA + + ++Boston +00.000 +---0-00-0 +0-0--- + ++New Jersey +00.000 +---0-00-0 +0-0--- + ++New York +00.000 +---0-00-0 +0-0--- + ++Philadelphia +00.000 +---0-00-0 +0-0--- + ++Toronto +00.000 +---0-00-0 +0-0--- + + + ++Chicago +00.000 +---0-00-0 +0-0--- + ++Cleveland +00.000 +---0-00-0 +0-0--- + ++Detroit +00.000 +---0-00-0 +0-0--- + ++Indiana +00.000 +---0-00-0 +0-0--- + ++Milwaukee +00.000 +---0-00-0 +0-0--- + + + ++Atlanta +00.000 +---0-00-0 +0-0--- + ++Charlotte +00.000 +---0-00-0 +0-0--- + ++Miami +00.000 +---0-00-0 +0-0--- + ++Orlando +00.000 +---0-00-0 +0-0--- + ++Washington +00.000 +---0-00-0 +0-0--- + + + + + ++Dallas +00.000 +---0-00-0 +0-0--- + ++Houston +00.000 +---0-00-0 +0-0--- + ++Memphis +00.000 +---0-00-0 +0-0--- + ++New Orleans +00.000 +---0-00-0 +0-0--- + ++San Antonio +00.000 +---0-00-0 +0-0--- + + + ++Denver +00.000 +---0-00-0 +0-0--- + ++Minnesota +00.000 +---0-00-0 +0-0--- + ++Portland +00.000 +---0-00-0 +0-0--- + ++Seattle +00.000 +---0-00-0 +0-0--- + ++Utah +00.000 +---0-00-0 +0-0--- + + + ++Golden State +00.000 +---0-00-0 +0-0--- + ++LA Clippers +00.000 +---0-00-0 +0-0--- + ++LA Lakers +00.000 +---0-00-0 +0-0--- + ++Phoenix +00.000 +---0-00-0 +0-0--- + ++Sacramento +00.000 +---0-00-0 +0-0--- + + + + November 2, 2004, at 01:02 PM ET +