From: Michael Orlitzky Date: Sun, 22 Jun 2014 19:43:23 +0000 (-0400) Subject: Add SportInfo support for NBAAssistsXML.dtd. X-Git-Tag: 0.0.6~123 X-Git-Url: https://gitweb.michael.orlitzky.com/?a=commitdiff_plain;h=fcad4f0ed349bb324238801653247e9601bd0f0e;p=dead%2Fhtsn-import.git Add SportInfo support for NBAAssistsXML.dtd. --- diff --git a/doc/man1/htsn-import.1 b/doc/man1/htsn-import.1 index 5886f14..aaad200 100644 --- a/doc/man1/htsn-import.1 +++ b/doc/man1/htsn-import.1 @@ -272,6 +272,8 @@ MLB_Pitching_WL_Leaders.dtd NBA_Team_Stats_XML.dtd .IP \[bu] NBA3PPctXML.dtd +.IP \[bu] +NBAAssistsXML.dtd .RE .P The GameInfo and SportInfo types do not have their own top-level diff --git a/schema/NBAAssistsXML.dtd b/schema/NBAAssistsXML.dtd new file mode 100644 index 0000000..28eb41b --- /dev/null +++ b/schema/NBAAssistsXML.dtd @@ -0,0 +1,36 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/schemagen/NBAAssistsXML/NBAAssistsXML.xml b/schemagen/NBAAssistsXML/NBAAssistsXML.xml new file mode 100644 index 0000000..48020df --- /dev/null +++ b/schemagen/NBAAssistsXML/NBAAssistsXML.xml @@ -0,0 +1,346 @@ + + + +1701987 +ACX%ASSISTS-LEADERS +Statistics +NBA +2001-2002 NBA Top 25 Assist Leaders ++1 +J.Kidd,NJ +41 +37:29 +408 +10.0 +140 +3.4 +581 +14.2 + ++2 +A.Miller,CLE +40 +35:06 +400 +10.0 +124 +3.1 +637 +15.9 + ++3 +J.Tinsley,IND +42 +31:20 +377 +9.0 +145 +3.5 +404 +9.6 + ++4 +G.Payton,SEA +40 +41:33 +364 +9.1 +114 +2.9 +913 +22.8 + ++5 +B.Davis,CHA +40 +40:48 +349 +8.7 +122 +3.1 +765 +19.1 + ++6 +S.Marbury,PHO +41 +38:26 +334 +8.1 +146 +3.6 +827 +20.2 + ++7 +S.Nash,DAL +42 +37:31 +332 +7.9 +119 +2.8 +812 +19.3 + ++8 +J.Stockton,UTA +41 +31:24 +327 +8.0 +111 +2.7 +518 +12.6 + ++9 +N.Van Exel,DEN +40 +39:03 +315 +7.9 +100 +2.5 +904 +22.6 + ++10 +J.Williams,MEM +38 +34:33 +298 +7.8 +127 +3.3 +571 +15.0 + ++11 +M.Jackson,NY +39 +29:52 +282 +7.2 +73 +1.9 +309 +7.9 + ++12 +D.Armstrong,ORL +43 +32:33 +248 +5.8 +86 +2.0 +516 +12.0 + ++13 +A.Williams,TOR +42 +35:48 +247 +5.9 +71 +1.7 +496 +11.8 + ++ +S.Cassell,MIL +37 +35:37 +247 +6.7 +101 +2.7 +749 +20.2 + ++14 +D.Stoudamire,POR +34 +36:44 +244 +7.2 +69 +2.0 +463 +13.6 + ++15 +K.Garnett,MIN +40 +39:13 +234 +5.9 +118 +3.0 +878 +22.0 + ++16 +M.Norris,HOU +42 +28:21 +229 +5.5 +78 +1.9 +396 +9.4 + ++17 +K.Bryant,LAL +38 +37:48 +220 +5.8 +103 +2.7 +1004 +26.4 + ++18 +J.McInnis,LAC +42 +36:25 +213 +5.1 +74 +1.8 +569 +13.5 + ++19 +T.Brandon,MIN +24 +31:22 +209 +8.7 +30 +1.3 +316 +13.2 + ++20 +K.Anderson,BOS +39 +39:23 +208 +5.3 +51 +1.3 +362 +9.3 + ++21 +A.Walker,BOS +40 +42:36 +206 +5.2 +129 +3.2 +916 +22.9 + ++22 +A.Johnson,DEN +41 +22:33 +202 +4.9 +51 +1.2 +346 +8.4 + ++23 +B.Barry,SEA +40 +37:10 +201 +5.0 +79 +2.0 +500 +12.5 + ++ +G.Anthony,CHI +35 +27:12 +201 +5.7 +57 +1.6 +299 +8.5 + ++24 +T.McGrady,ORL +40 +37:07 +200 +5.0 +101 +2.5 +987 +24.7 + ++ +L.Hughes,GS +40 +32:07 +200 +5.0 +102 +2.6 +569 +14.2 + ++25 +M.Bibby,SAC +39 +33:21 +199 +5.1 +68 +1.7 +550 +14.1 + + January 23, 2002, at 03:37 PM ET + diff --git a/src/TSN/XML/SportInfo.hs b/src/TSN/XML/SportInfo.hs index f18215d..c756290 100644 --- a/src/TSN/XML/SportInfo.hs +++ b/src/TSN/XML/SportInfo.hs @@ -154,7 +154,7 @@ dtds = "MLB_Pitching_WL_Leaders.dtd", "NBA_Team_Stats_XML.dtd", "NBA3PPctXML.dtd", - "NBAAssistsXML.dtd", -- no dtd + "NBAAssistsXML.dtd", "NBABlocksXML.dtd", -- no dtd "nbaconfrecxml.dtd", -- no dtd "nbadaysxml.dtd", -- no dtd @@ -397,7 +397,8 @@ sport_info_test_files = "MLB_Pitching_Win_Percentage_Leaders.xml", "MLB_Pitching_WL_Leaders.xml", "NBA_Team_Stats_XML.xml", - "NBA3PPctXML.xml" + "NBA3PPctXML.xml", + "NBAAssistsXML.xml" ] diff --git a/test/xml/sportinfo/NBAAssistsXML.dtd b/test/xml/sportinfo/NBAAssistsXML.dtd new file mode 100644 index 0000000..28eb41b --- /dev/null +++ b/test/xml/sportinfo/NBAAssistsXML.dtd @@ -0,0 +1,36 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/test/xml/sportinfo/NBAAssistsXML.xml b/test/xml/sportinfo/NBAAssistsXML.xml new file mode 100644 index 0000000..48020df --- /dev/null +++ b/test/xml/sportinfo/NBAAssistsXML.xml @@ -0,0 +1,346 @@ + + + +1701987 +ACX%ASSISTS-LEADERS +Statistics +NBA +2001-2002 NBA Top 25 Assist Leaders ++1 +J.Kidd,NJ +41 +37:29 +408 +10.0 +140 +3.4 +581 +14.2 + ++2 +A.Miller,CLE +40 +35:06 +400 +10.0 +124 +3.1 +637 +15.9 + ++3 +J.Tinsley,IND +42 +31:20 +377 +9.0 +145 +3.5 +404 +9.6 + ++4 +G.Payton,SEA +40 +41:33 +364 +9.1 +114 +2.9 +913 +22.8 + ++5 +B.Davis,CHA +40 +40:48 +349 +8.7 +122 +3.1 +765 +19.1 + ++6 +S.Marbury,PHO +41 +38:26 +334 +8.1 +146 +3.6 +827 +20.2 + ++7 +S.Nash,DAL +42 +37:31 +332 +7.9 +119 +2.8 +812 +19.3 + ++8 +J.Stockton,UTA +41 +31:24 +327 +8.0 +111 +2.7 +518 +12.6 + ++9 +N.Van Exel,DEN +40 +39:03 +315 +7.9 +100 +2.5 +904 +22.6 + ++10 +J.Williams,MEM +38 +34:33 +298 +7.8 +127 +3.3 +571 +15.0 + ++11 +M.Jackson,NY +39 +29:52 +282 +7.2 +73 +1.9 +309 +7.9 + ++12 +D.Armstrong,ORL +43 +32:33 +248 +5.8 +86 +2.0 +516 +12.0 + ++13 +A.Williams,TOR +42 +35:48 +247 +5.9 +71 +1.7 +496 +11.8 + ++ +S.Cassell,MIL +37 +35:37 +247 +6.7 +101 +2.7 +749 +20.2 + ++14 +D.Stoudamire,POR +34 +36:44 +244 +7.2 +69 +2.0 +463 +13.6 + ++15 +K.Garnett,MIN +40 +39:13 +234 +5.9 +118 +3.0 +878 +22.0 + ++16 +M.Norris,HOU +42 +28:21 +229 +5.5 +78 +1.9 +396 +9.4 + ++17 +K.Bryant,LAL +38 +37:48 +220 +5.8 +103 +2.7 +1004 +26.4 + ++18 +J.McInnis,LAC +42 +36:25 +213 +5.1 +74 +1.8 +569 +13.5 + ++19 +T.Brandon,MIN +24 +31:22 +209 +8.7 +30 +1.3 +316 +13.2 + ++20 +K.Anderson,BOS +39 +39:23 +208 +5.3 +51 +1.3 +362 +9.3 + ++21 +A.Walker,BOS +40 +42:36 +206 +5.2 +129 +3.2 +916 +22.9 + ++22 +A.Johnson,DEN +41 +22:33 +202 +4.9 +51 +1.2 +346 +8.4 + ++23 +B.Barry,SEA +40 +37:10 +201 +5.0 +79 +2.0 +500 +12.5 + ++ +G.Anthony,CHI +35 +27:12 +201 +5.7 +57 +1.6 +299 +8.5 + ++24 +T.McGrady,ORL +40 +37:07 +200 +5.0 +101 +2.5 +987 +24.7 + ++ +L.Hughes,GS +40 +32:07 +200 +5.0 +102 +2.6 +569 +14.2 + ++25 +M.Bibby,SAC +39 +33:21 +199 +5.1 +68 +1.7 +550 +14.1 + + January 23, 2002, at 03:37 PM ET +