From: Michael Orlitzky Date: Mon, 23 Jun 2014 01:49:02 +0000 (-0400) Subject: Add SportInfo support for NBATurnoversXML.dtd. X-Git-Tag: 0.0.6~108 X-Git-Url: https://gitweb.michael.orlitzky.com/?a=commitdiff_plain;h=cb56cc308176a02de38bf095962643c77c6c563e;p=dead%2Fhtsn-import.git Add SportInfo support for NBATurnoversXML.dtd. --- diff --git a/doc/man1/htsn-import.1 b/doc/man1/htsn-import.1 index fbb7ce0..62b3351 100644 --- a/doc/man1/htsn-import.1 +++ b/doc/man1/htsn-import.1 @@ -302,6 +302,8 @@ NBAStealsXML.dtd nbateamleadersxml.dtd .IP \[bu] nbatripledoublexml.dtd +.IP \[bu] +NBATurnoversXML.dtd .RE .P The GameInfo and SportInfo types do not have their own top-level diff --git a/schema/NBATurnoversXML.dtd b/schema/NBATurnoversXML.dtd new file mode 100644 index 0000000..5549fe1 --- /dev/null +++ b/schema/NBATurnoversXML.dtd @@ -0,0 +1,36 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/schemagen/NBATurnoversXML/NBATurnoversXML.xml b/schemagen/NBATurnoversXML/NBATurnoversXML.xml new file mode 100644 index 0000000..8128d4b --- /dev/null +++ b/schemagen/NBATurnoversXML/NBATurnoversXML.xml @@ -0,0 +1,394 @@ + + + +10072017 +ACX%TURNOVERS-LEADERS +Statistics +NBA +2001-2002 NBA Top 25 Turnover Leaders ++1 +S.Marbury,PHO +41 +38:26 +146 +3.6 +334 +8.1 +827 +20.2 + ++2 +J.Tinsley,IND +42 +31:20 +145 +3.5 +377 +9.0 +404 +9.6 + ++3 +J.Kidd,NJ +41 +37:29 +140 +3.4 +408 +10.0 +581 +14.2 + ++4 +A.Iverson,PHI +34 +43:35 +134 +3.9 +195 +5.7 +1016 +29.9 + ++ +K.Malone,UTA +41 +38:43 +134 +3.3 +169 +4.1 +990 +24.1 + ++5 +T.Duncan,SAN +39 +41:23 +131 +3.4 +139 +3.6 +992 +25.4 + ++6 +A.Walker,BOS +40 +42:36 +129 +3.2 +206 +5.2 +916 +22.9 + ++ +J.Stackhouse,DET +35 +35:44 +129 +3.7 +184 +5.3 +814 +23.3 + ++7 +J.Williams,MEM +38 +34:33 +127 +3.3 +298 +7.8 +571 +15.0 + ++8 +A.Miller,CLE +40 +35:06 +124 +3.1 +400 +10.0 +637 +15.9 + ++9 +B.Davis,CHA +40 +40:48 +122 +3.1 +349 +8.7 +765 +19.1 + ++10 +S.Nash,DAL +42 +37:31 +119 +2.8 +332 +7.9 +812 +19.3 + ++11 +K.Garnett,MIN +40 +39:13 +118 +3.0 +234 +5.9 +878 +22.0 + ++12 +S.Abdur-Rahim,ATL +39 +37:26 +117 +3.0 +101 +2.6 +784 +20.1 + ++13 +P.Pierce,BOS +40 +40:40 +116 +2.9 +135 +3.4 +1083 +27.1 + ++14 +G.Payton,SEA +40 +41:33 +114 +2.9 +364 +9.1 +913 +22.8 + ++15 +V.Carter,TOR +41 +40:43 +112 +2.7 +186 +4.5 +1058 +25.8 + ++ +M.Jordan,WAS +38 +36:07 +112 +2.9 +191 +5.0 +917 +24.1 + ++16 +J.Stockton,UTA +41 +31:24 +111 +2.7 +327 +8.0 +518 +12.6 + ++17 +L.Sprewell,NY +39 +39:56 +110 +2.8 +126 +3.2 +744 +19.1 + ++18 +A.Hardaway,PHO +41 +36:21 +109 +2.7 +196 +4.8 +609 +14.9 + ++19 +K.Bryant,LAL +38 +37:48 +103 +2.7 +220 +5.8 +1004 +26.4 + ++20 +E.Brand,LAC +42 +36:21 +102 +2.4 +93 +2.2 +778 +18.5 + ++ +L.Hughes,GS +40 +32:07 +102 +2.6 +200 +5.0 +569 +14.2 + ++21 +T.McGrady,ORL +40 +37:07 +101 +2.5 +200 +5.0 +987 +24.7 + ++ +S.Cassell,MIL +37 +35:37 +101 +2.7 +247 +6.7 +749 +20.2 + ++22 +N.Van Exel,DEN +40 +39:03 +100 +2.5 +315 +7.9 +904 +22.6 + ++ +P.Gasol,MEM +40 +36:27 +100 +2.5 +75 +1.9 +669 +16.7 + ++23 +C.Mobley,HOU +38 +41:14 +99 +2.6 +109 +2.9 +738 +19.4 + ++ +K.Martin,NJ +38 +35:06 +99 +2.6 +99 +2.6 +582 +15.3 + ++24 +L.Odom,LAC +29 +34:26 +97 +3.3 +171 +5.9 +379 +13.1 + ++25 +D.Fortson,GS +40 +30:24 +96 +2.4 +64 +1.6 +480 +12.0 + + January 23, 2002, at 03:38 PM ET + diff --git a/src/TSN/XML/SportInfo.hs b/src/TSN/XML/SportInfo.hs index d703d3a..1a4fd0b 100644 --- a/src/TSN/XML/SportInfo.hs +++ b/src/TSN/XML/SportInfo.hs @@ -169,7 +169,7 @@ dtds = "NBAStealsXML.dtd", "nbateamleadersxml.dtd", "nbatripledoublexml.dtd", - "NBATurnoversXML.dtd", -- no dtd + "NBATurnoversXML.dtd", "NCAA_Conference_Schedule_XML.dtd", -- no dtd "nflfirstdownxml.dtd", -- no dtd "NFLFumbleLeaderXML.dtd", -- no dtd @@ -412,7 +412,8 @@ sport_info_test_files = "nbastandxml.xml", "NBAStealsXML.xml", "nbateamleadersxml.xml", - "nbatripledoublexml.xml" + "nbatripledoublexml.xml", + "NBATurnoversXML.xml" ] diff --git a/test/xml/sportinfo/NBATurnoversXML.dtd b/test/xml/sportinfo/NBATurnoversXML.dtd new file mode 100644 index 0000000..5549fe1 --- /dev/null +++ b/test/xml/sportinfo/NBATurnoversXML.dtd @@ -0,0 +1,36 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/test/xml/sportinfo/NBATurnoversXML.xml b/test/xml/sportinfo/NBATurnoversXML.xml new file mode 100644 index 0000000..8128d4b --- /dev/null +++ b/test/xml/sportinfo/NBATurnoversXML.xml @@ -0,0 +1,394 @@ + + + +10072017 +ACX%TURNOVERS-LEADERS +Statistics +NBA +2001-2002 NBA Top 25 Turnover Leaders ++1 +S.Marbury,PHO +41 +38:26 +146 +3.6 +334 +8.1 +827 +20.2 + ++2 +J.Tinsley,IND +42 +31:20 +145 +3.5 +377 +9.0 +404 +9.6 + ++3 +J.Kidd,NJ +41 +37:29 +140 +3.4 +408 +10.0 +581 +14.2 + ++4 +A.Iverson,PHI +34 +43:35 +134 +3.9 +195 +5.7 +1016 +29.9 + ++ +K.Malone,UTA +41 +38:43 +134 +3.3 +169 +4.1 +990 +24.1 + ++5 +T.Duncan,SAN +39 +41:23 +131 +3.4 +139 +3.6 +992 +25.4 + ++6 +A.Walker,BOS +40 +42:36 +129 +3.2 +206 +5.2 +916 +22.9 + ++ +J.Stackhouse,DET +35 +35:44 +129 +3.7 +184 +5.3 +814 +23.3 + ++7 +J.Williams,MEM +38 +34:33 +127 +3.3 +298 +7.8 +571 +15.0 + ++8 +A.Miller,CLE +40 +35:06 +124 +3.1 +400 +10.0 +637 +15.9 + ++9 +B.Davis,CHA +40 +40:48 +122 +3.1 +349 +8.7 +765 +19.1 + ++10 +S.Nash,DAL +42 +37:31 +119 +2.8 +332 +7.9 +812 +19.3 + ++11 +K.Garnett,MIN +40 +39:13 +118 +3.0 +234 +5.9 +878 +22.0 + ++12 +S.Abdur-Rahim,ATL +39 +37:26 +117 +3.0 +101 +2.6 +784 +20.1 + ++13 +P.Pierce,BOS +40 +40:40 +116 +2.9 +135 +3.4 +1083 +27.1 + ++14 +G.Payton,SEA +40 +41:33 +114 +2.9 +364 +9.1 +913 +22.8 + ++15 +V.Carter,TOR +41 +40:43 +112 +2.7 +186 +4.5 +1058 +25.8 + ++ +M.Jordan,WAS +38 +36:07 +112 +2.9 +191 +5.0 +917 +24.1 + ++16 +J.Stockton,UTA +41 +31:24 +111 +2.7 +327 +8.0 +518 +12.6 + ++17 +L.Sprewell,NY +39 +39:56 +110 +2.8 +126 +3.2 +744 +19.1 + ++18 +A.Hardaway,PHO +41 +36:21 +109 +2.7 +196 +4.8 +609 +14.9 + ++19 +K.Bryant,LAL +38 +37:48 +103 +2.7 +220 +5.8 +1004 +26.4 + ++20 +E.Brand,LAC +42 +36:21 +102 +2.4 +93 +2.2 +778 +18.5 + ++ +L.Hughes,GS +40 +32:07 +102 +2.6 +200 +5.0 +569 +14.2 + ++21 +T.McGrady,ORL +40 +37:07 +101 +2.5 +200 +5.0 +987 +24.7 + ++ +S.Cassell,MIL +37 +35:37 +101 +2.7 +247 +6.7 +749 +20.2 + ++22 +N.Van Exel,DEN +40 +39:03 +100 +2.5 +315 +7.9 +904 +22.6 + ++ +P.Gasol,MEM +40 +36:27 +100 +2.5 +75 +1.9 +669 +16.7 + ++23 +C.Mobley,HOU +38 +41:14 +99 +2.6 +109 +2.9 +738 +19.4 + ++ +K.Martin,NJ +38 +35:06 +99 +2.6 +99 +2.6 +582 +15.3 + ++24 +L.Odom,LAC +29 +34:26 +97 +3.3 +171 +5.9 +379 +13.1 + ++25 +D.Fortson,GS +40 +30:24 +96 +2.4 +64 +1.6 +480 +12.0 + + January 23, 2002, at 03:38 PM ET +