From: Michael Orlitzky Date: Sun, 22 Jun 2014 19:34:30 +0000 (-0400) Subject: Add SportInfo support for NBA_Team_Stats_XML.dtd. X-Git-Tag: 0.0.6~125 X-Git-Url: https://gitweb.michael.orlitzky.com/?a=commitdiff_plain;h=93360ec162145a223676de7ab7ea427d6c030252;p=dead%2Fhtsn-import.git Add SportInfo support for NBA_Team_Stats_XML.dtd. --- diff --git a/doc/man1/htsn-import.1 b/doc/man1/htsn-import.1 index 433ecf0..3abdb66 100644 --- a/doc/man1/htsn-import.1 +++ b/doc/man1/htsn-import.1 @@ -268,6 +268,8 @@ MLB_Pitching_Wild_Pitches_Leaders.dtd MLB_Pitching_Win_Percentage_Leaders.dtd .IP \[bu] MLB_Pitching_WL_Leaders.dtd +.IP \[bu] +NBA_Team_Stats_XML.dtd .RE .P The GameInfo and SportInfo types do not have their own top-level diff --git a/schema/NBA_Team_Stats_XML.dtd b/schema/NBA_Team_Stats_XML.dtd new file mode 100644 index 0000000..9676b73 --- /dev/null +++ b/schema/NBA_Team_Stats_XML.dtd @@ -0,0 +1,19 @@ + + + + + + + + + + + + + + + + + + + diff --git a/schemagen/NBA_Team_Stats_XML/NBA_Team_Stats_XML.xml b/schemagen/NBA_Team_Stats_XML/NBA_Team_Stats_XML.xml new file mode 100644 index 0000000..b475cbf --- /dev/null +++ b/schemagen/NBA_Team_Stats_XML/NBA_Team_Stats_XML.xml @@ -0,0 +1,239 @@ + + + +171617 +ACX%TEAMSTATS-PHO +Statistics +NBA +Regular +2010 +Phoenix Suns Team Statistics + + +0-1 +2-0 +2-0 +1-0 +Pho 5 +51-42 + + +0-0 +1-1 +0-2 +1-1 +Pho 1 +38-56 + + +0-1 +1-1 +2-0 +0-0 +Pho 2 +17-10 + + +0-0 +2-0 +2-0 +0-0 +Pho 4 +53-53 + + +0-1 +2-0 +2-0 +0-0 +Pho 4 +46-31 + + +3-1 +1-3 +3-1 +0-1 +Dal 1 +58-35 + + +3-0 +3-1 +4-0 +1-2 +Pho 1 +66-46 + + +0-1 +2-0 +1-1 +0-0 +Pho 1 +53-47 + + +2-1 +4-0 +2-2 +2-0 +Pho 3 +107-68 + + +2-2 +2-2 +3-1 +1-1 +Pho 1 +78-71 + + +0-0 +1-1 +1-1 +0-0 +Ind 1 +29-25 + + +3-0 +4-0 +2-2 +0-2 +LaC 3 +96-54 + + +1-3 +0-4 +1-3 +1-2 +LaL 1 +72-108 + + +3-0 +4-0 +3-1 +2-1 +Mem 1 +22-4 + + +0-0 +1-1 +2-0 +1-0 +Pho 3 +23-4 + + +1-0 +1-1 +2-0 +2-0 +Pho 5 +50-58 + + +2-1 +3-1 +1-3 +1-0 +Pho 1 +36-12 + + +0-0 +2-0 +1-1 +0-1 +NJ 2 +27-27 + + +0-1 +1-1 +1-1 +1-1 +NY 1 +45-50 + + +0-0 +2-0 +1-1 +0-1 +Orl 2 +16-9 + + +0-0 +2-0 +1-1 +0-1 +Phi 1 +48-43 + + +0-3 +1-3 +3-1 +2-1 +Por 1 +87-77 + + +0-3 +4-0 +1-3 +1-3 +Sac 3 +99-64 + + +2-2 +2-2 +2-2 +0-1 +San 3 +58-49 + + +3-0 +2-2 +3-1 +1-0 +Pho 4 +101-74 + + +0-0 +1-1 +2-0 +1-1 +Pho 1 +8-4 + + +2-2 +0-4 +2-2 +2-1 +Uta 1 +68-53 + + +0-0 +2-0 +1-1 +0-1 +Was 1 +44-49 + + +Regular Season Only + January 28, 2002, at 04:34 PM ET + diff --git a/src/TSN/XML/SportInfo.hs b/src/TSN/XML/SportInfo.hs index 9fa4725..e54e774 100644 --- a/src/TSN/XML/SportInfo.hs +++ b/src/TSN/XML/SportInfo.hs @@ -152,7 +152,7 @@ dtds = "MLB_Pitching_Wild_Pitches_Leaders.dtd", "MLB_Pitching_Win_Percentage_Leaders.dtd", "MLB_Pitching_WL_Leaders.dtd", - "NBA_Team_Stats_XML.dtd", -- no dtd + "NBA_Team_Stats_XML.dtd", "NBA3PPctXML.dtd", -- no dtd "NBAAssistsXML.dtd", -- no dtd "NBABlocksXML.dtd", -- no dtd @@ -395,7 +395,8 @@ sport_info_test_files = "MLB_Pitching_WHIP_Leaders.xml", "MLB_Pitching_Wild_Pitches_Leaders.xml", "MLB_Pitching_Win_Percentage_Leaders.xml", - "MLB_Pitching_WL_Leaders.xml" + "MLB_Pitching_WL_Leaders.xml", + "NBA_Team_Stats_XML.xml" ] diff --git a/test/xml/sportinfo/NBA_Team_Stats_XML.dtd b/test/xml/sportinfo/NBA_Team_Stats_XML.dtd new file mode 100644 index 0000000..9676b73 --- /dev/null +++ b/test/xml/sportinfo/NBA_Team_Stats_XML.dtd @@ -0,0 +1,19 @@ + + + + + + + + + + + + + + + + + + + diff --git a/test/xml/sportinfo/NBA_Team_Stats_XML.xml b/test/xml/sportinfo/NBA_Team_Stats_XML.xml new file mode 100644 index 0000000..b475cbf --- /dev/null +++ b/test/xml/sportinfo/NBA_Team_Stats_XML.xml @@ -0,0 +1,239 @@ + + + +171617 +ACX%TEAMSTATS-PHO +Statistics +NBA +Regular +2010 +Phoenix Suns Team Statistics + + +0-1 +2-0 +2-0 +1-0 +Pho 5 +51-42 + + +0-0 +1-1 +0-2 +1-1 +Pho 1 +38-56 + + +0-1 +1-1 +2-0 +0-0 +Pho 2 +17-10 + + +0-0 +2-0 +2-0 +0-0 +Pho 4 +53-53 + + +0-1 +2-0 +2-0 +0-0 +Pho 4 +46-31 + + +3-1 +1-3 +3-1 +0-1 +Dal 1 +58-35 + + +3-0 +3-1 +4-0 +1-2 +Pho 1 +66-46 + + +0-1 +2-0 +1-1 +0-0 +Pho 1 +53-47 + + +2-1 +4-0 +2-2 +2-0 +Pho 3 +107-68 + + +2-2 +2-2 +3-1 +1-1 +Pho 1 +78-71 + + +0-0 +1-1 +1-1 +0-0 +Ind 1 +29-25 + + +3-0 +4-0 +2-2 +0-2 +LaC 3 +96-54 + + +1-3 +0-4 +1-3 +1-2 +LaL 1 +72-108 + + +3-0 +4-0 +3-1 +2-1 +Mem 1 +22-4 + + +0-0 +1-1 +2-0 +1-0 +Pho 3 +23-4 + + +1-0 +1-1 +2-0 +2-0 +Pho 5 +50-58 + + +2-1 +3-1 +1-3 +1-0 +Pho 1 +36-12 + + +0-0 +2-0 +1-1 +0-1 +NJ 2 +27-27 + + +0-1 +1-1 +1-1 +1-1 +NY 1 +45-50 + + +0-0 +2-0 +1-1 +0-1 +Orl 2 +16-9 + + +0-0 +2-0 +1-1 +0-1 +Phi 1 +48-43 + + +0-3 +1-3 +3-1 +2-1 +Por 1 +87-77 + + +0-3 +4-0 +1-3 +1-3 +Sac 3 +99-64 + + +2-2 +2-2 +2-2 +0-1 +San 3 +58-49 + + +3-0 +2-2 +3-1 +1-0 +Pho 4 +101-74 + + +0-0 +1-1 +2-0 +1-1 +Pho 1 +8-4 + + +2-2 +0-4 +2-2 +2-1 +Uta 1 +68-53 + + +0-0 +2-0 +1-1 +0-1 +Was 1 +44-49 + + +Regular Season Only + January 28, 2002, at 04:34 PM ET +