From: Michael Orlitzky Date: Sun, 22 Jun 2014 21:43:36 +0000 (-0400) Subject: Add SportInfo support for NBAFoulsXML.dtd. X-Git-Tag: 0.0.6~117 X-Git-Url: https://gitweb.michael.orlitzky.com/?a=commitdiff_plain;h=8017efc50a3558b9060c6f414a03fb7e39ed58d6;p=dead%2Fhtsn-import.git Add SportInfo support for NBAFoulsXML.dtd. --- diff --git a/doc/man1/htsn-import.1 b/doc/man1/htsn-import.1 index 91887b6..6ea4adf 100644 --- a/doc/man1/htsn-import.1 +++ b/doc/man1/htsn-import.1 @@ -284,6 +284,8 @@ nbadaysxml.dtd nbadivisionsxml.dtd .IP \[bu] NBAFGPctXML.dtd +.IP \[bu] +NBAFoulsXML.dtd .RE .P The GameInfo and SportInfo types do not have their own top-level diff --git a/schema/NBAFoulsXML.dtd b/schema/NBAFoulsXML.dtd new file mode 100644 index 0000000..aa2f189 --- /dev/null +++ b/schema/NBAFoulsXML.dtd @@ -0,0 +1,34 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/schemagen/NBAFoulsXML/NBAFoulsXML.xml b/schemagen/NBAFoulsXML/NBAFoulsXML.xml new file mode 100644 index 0000000..62a5897 --- /dev/null +++ b/schemagen/NBAFoulsXML/NBAFoulsXML.xml @@ -0,0 +1,494 @@ + + + +70129717 +ACX%FOULS-LEADERS +Statistics +NBA +2001-2002 NBA Top 25 Foul Leaders ++1 +A.Harrington,IND +43 +29:48 +162 +3.8 +7 +569 +13.2 + ++2 +C.Mihm,CLE +41 +27:20 +160 +3.9 +2 +401 +9.8 + ++3 +K.Thomas,NY +39 +31:10 +157 +4.0 +4 +420 +10.8 + ++4 +E.Campbell,CHA +40 +30:07 +149 +3.7 +5 +598 +15.0 + ++5 +O.Harrington,NY +39 +23:03 +145 +3.7 +5 +335 +8.6 + ++ +D.Fortson,GS +40 +30:24 +145 +3.6 +9 +480 +12.0 + ++ +K.Martin,NJ +38 +35:06 +145 +3.8 +8 +582 +15.3 + ++6 +R.LaFrentz,DEN +41 +31:58 +144 +3.5 +2 +561 +13.7 + ++7 +J.Posey,DEN +41 +33:35 +139 +3.4 +3 +468 +11.4 + ++8 +J.Tinsley,IND +42 +31:20 +138 +3.3 +6 +404 +9.6 + ++9 +J.O`Neal,IND +36 +36:05 +135 +3.8 +7 +657 +18.3 + ++10 +J.Howard,DAL +42 +30:17 +134 +3.2 +6 +499 +11.9 + ++11 +K.Clark,TOR +41 +24:04 +132 +3.2 +1 +401 +9.8 + ++ +J.Foster,IND +43 +24:22 +132 +3.1 +1 +273 +6.3 + ++ +R.Nesterovic,MIN +40 +26:52 +132 +3.3 +1 +355 +8.9 + ++ +E.Brand,LAC +42 +36:21 +132 +3.1 +1 +778 +18.5 + ++12 +B.Miller,CHI +39 +28:46 +126 +3.2 +5 +474 +12.2 + ++ +D.Mutombo,PHI +41 +36:13 +126 +3.1 +8 +442 +10.8 + ++ +P.Pierce,BOS +40 +40:40 +126 +3.2 +4 +1083 +27.1 + ++13 +V.Carter,TOR +41 +40:43 +124 +3.0 +5 +1058 +25.8 + ++14 +T.MacCulloch,NJ +41 +25:32 +123 +3.0 +0 +425 +10.4 + ++ +R.Rogers,PHO +41 +26:11 +123 +3.0 +5 +531 +13.0 + ++ +V.Baker,SEA +32 +34:13 +123 +3.8 +3 +535 +16.7 + ++15 +N.Mohammed,ATL +41 +26:36 +122 +3.0 +0 +421 +10.3 + ++ +L.Ellis,MIA +40 +27:54 +122 +3.1 +1 +313 +7.8 + ++16 +T.Battie,BOS +40 +25:39 +121 +3.0 +2 +282 +7.1 + ++17 +T.Murphy,GS +40 +17:52 +120 +3.0 +6 +228 +5.7 + ++ +E.Jones,MIA +39 +39:23 +120 +3.1 +1 +728 +18.7 + ++18 +A.Mourning,MIA +35 +32:18 +117 +3.3 +8 +537 +15.3 + ++19 +J.Smith,MIN +32 +29:48 +116 +3.6 +1 +400 +12.5 + ++ +C.Robinson,DET +39 +35:35 +116 +3.0 +7 +579 +14.8 + ++ +D.Nowitzki,DAL +40 +37:49 +116 +2.9 +7 +977 +24.4 + ++20 +A.Long,SEA +37 +15:42 +115 +3.1 +2 +186 +5.0 + ++ +P.Garrity,ORL +42 +26:02 +115 +2.7 +1 +409 +9.7 + ++ +K.Malone,UTA +41 +38:43 +115 +2.8 +7 +990 +24.1 + ++21 +V.Divac,SAC +39 +32:43 +114 +2.9 +6 +456 +11.7 + ++22 +J.Rose,IND +43 +35:53 +113 +2.6 +0 +788 +18.3 + ++23 +D.Christie,SAC +40 +34:36 +112 +2.8 +0 +534 +13.4 + ++ +A.Walker,BOS +40 +42:36 +112 +2.8 +7 +916 +22.9 + ++24 +M.Olowokandi,LAC +41 +28:05 +111 +2.7 +2 +294 +7.2 + ++ +S.Marion,PHO +41 +36:42 +111 +2.7 +1 +748 +18.2 + ++ +R.Wallace,POR +41 +38:24 +111 +2.7 +12 +808 +19.7 + ++ +B.Davis,CHA +40 +40:48 +111 +2.8 +8 +765 +19.1 + ++25 +T.Thomas,MIL +40 +29:27 +110 +2.8 +5 +545 +13.6 + + January 23, 2002, at 03:37 PM ET + diff --git a/src/TSN/XML/SportInfo.hs b/src/TSN/XML/SportInfo.hs index b3bce4e..bc2fdcc 100644 --- a/src/TSN/XML/SportInfo.hs +++ b/src/TSN/XML/SportInfo.hs @@ -160,7 +160,7 @@ dtds = "nbadaysxml.dtd", "nbadivisionsxml.dtd", "NBAFGPctXML.dtd", - "NBAFoulsXML.dtd", -- no dtd + "NBAFoulsXML.dtd", "NBAFTPctXML.dtd", -- no dtd "NBAMinutesXML.dtd", -- no dtd "NBAReboundsXML.dtd", -- no dtd @@ -403,7 +403,8 @@ sport_info_test_files = "nbaconfrecxml.xml", "nbadaysxml.xml", "nbadivisionsxml.xml", - "NBAFGPctXML.xml" + "NBAFGPctXML.xml", + "NBAFoulsXML.xml" ] diff --git a/test/xml/sportinfo/NBAFoulsXML.dtd b/test/xml/sportinfo/NBAFoulsXML.dtd new file mode 100644 index 0000000..aa2f189 --- /dev/null +++ b/test/xml/sportinfo/NBAFoulsXML.dtd @@ -0,0 +1,34 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/test/xml/sportinfo/NBAFoulsXML.xml b/test/xml/sportinfo/NBAFoulsXML.xml new file mode 100644 index 0000000..62a5897 --- /dev/null +++ b/test/xml/sportinfo/NBAFoulsXML.xml @@ -0,0 +1,494 @@ + + + +70129717 +ACX%FOULS-LEADERS +Statistics +NBA +2001-2002 NBA Top 25 Foul Leaders ++1 +A.Harrington,IND +43 +29:48 +162 +3.8 +7 +569 +13.2 + ++2 +C.Mihm,CLE +41 +27:20 +160 +3.9 +2 +401 +9.8 + ++3 +K.Thomas,NY +39 +31:10 +157 +4.0 +4 +420 +10.8 + ++4 +E.Campbell,CHA +40 +30:07 +149 +3.7 +5 +598 +15.0 + ++5 +O.Harrington,NY +39 +23:03 +145 +3.7 +5 +335 +8.6 + ++ +D.Fortson,GS +40 +30:24 +145 +3.6 +9 +480 +12.0 + ++ +K.Martin,NJ +38 +35:06 +145 +3.8 +8 +582 +15.3 + ++6 +R.LaFrentz,DEN +41 +31:58 +144 +3.5 +2 +561 +13.7 + ++7 +J.Posey,DEN +41 +33:35 +139 +3.4 +3 +468 +11.4 + ++8 +J.Tinsley,IND +42 +31:20 +138 +3.3 +6 +404 +9.6 + ++9 +J.O`Neal,IND +36 +36:05 +135 +3.8 +7 +657 +18.3 + ++10 +J.Howard,DAL +42 +30:17 +134 +3.2 +6 +499 +11.9 + ++11 +K.Clark,TOR +41 +24:04 +132 +3.2 +1 +401 +9.8 + ++ +J.Foster,IND +43 +24:22 +132 +3.1 +1 +273 +6.3 + ++ +R.Nesterovic,MIN +40 +26:52 +132 +3.3 +1 +355 +8.9 + ++ +E.Brand,LAC +42 +36:21 +132 +3.1 +1 +778 +18.5 + ++12 +B.Miller,CHI +39 +28:46 +126 +3.2 +5 +474 +12.2 + ++ +D.Mutombo,PHI +41 +36:13 +126 +3.1 +8 +442 +10.8 + ++ +P.Pierce,BOS +40 +40:40 +126 +3.2 +4 +1083 +27.1 + ++13 +V.Carter,TOR +41 +40:43 +124 +3.0 +5 +1058 +25.8 + ++14 +T.MacCulloch,NJ +41 +25:32 +123 +3.0 +0 +425 +10.4 + ++ +R.Rogers,PHO +41 +26:11 +123 +3.0 +5 +531 +13.0 + ++ +V.Baker,SEA +32 +34:13 +123 +3.8 +3 +535 +16.7 + ++15 +N.Mohammed,ATL +41 +26:36 +122 +3.0 +0 +421 +10.3 + ++ +L.Ellis,MIA +40 +27:54 +122 +3.1 +1 +313 +7.8 + ++16 +T.Battie,BOS +40 +25:39 +121 +3.0 +2 +282 +7.1 + ++17 +T.Murphy,GS +40 +17:52 +120 +3.0 +6 +228 +5.7 + ++ +E.Jones,MIA +39 +39:23 +120 +3.1 +1 +728 +18.7 + ++18 +A.Mourning,MIA +35 +32:18 +117 +3.3 +8 +537 +15.3 + ++19 +J.Smith,MIN +32 +29:48 +116 +3.6 +1 +400 +12.5 + ++ +C.Robinson,DET +39 +35:35 +116 +3.0 +7 +579 +14.8 + ++ +D.Nowitzki,DAL +40 +37:49 +116 +2.9 +7 +977 +24.4 + ++20 +A.Long,SEA +37 +15:42 +115 +3.1 +2 +186 +5.0 + ++ +P.Garrity,ORL +42 +26:02 +115 +2.7 +1 +409 +9.7 + ++ +K.Malone,UTA +41 +38:43 +115 +2.8 +7 +990 +24.1 + ++21 +V.Divac,SAC +39 +32:43 +114 +2.9 +6 +456 +11.7 + ++22 +J.Rose,IND +43 +35:53 +113 +2.6 +0 +788 +18.3 + ++23 +D.Christie,SAC +40 +34:36 +112 +2.8 +0 +534 +13.4 + ++ +A.Walker,BOS +40 +42:36 +112 +2.8 +7 +916 +22.9 + ++24 +M.Olowokandi,LAC +41 +28:05 +111 +2.7 +2 +294 +7.2 + ++ +S.Marion,PHO +41 +36:42 +111 +2.7 +1 +748 +18.2 + ++ +R.Wallace,POR +41 +38:24 +111 +2.7 +12 +808 +19.7 + ++ +B.Davis,CHA +40 +40:48 +111 +2.8 +8 +765 +19.1 + ++25 +T.Thomas,MIL +40 +29:27 +110 +2.8 +5 +545 +13.6 + + January 23, 2002, at 03:37 PM ET +