From: Michael Orlitzky Date: Mon, 23 Jun 2014 19:28:00 +0000 (-0400) Subject: Add SportInfo support for WNBAScorersXML.dtd. X-Git-Tag: 0.0.6~78 X-Git-Url: https://gitweb.michael.orlitzky.com/?a=commitdiff_plain;h=e96c288034adb2f415c8874b8b6230f82338928f;p=dead%2Fhtsn-import.git Add SportInfo support for WNBAScorersXML.dtd. --- diff --git a/doc/man1/htsn-import.1 b/doc/man1/htsn-import.1 index 4ef7f46..0966ef8 100644 --- a/doc/man1/htsn-import.1 +++ b/doc/man1/htsn-import.1 @@ -362,6 +362,8 @@ WNBAFTPctXML.dtd WNBAMinutesXML.dtd .IP \[bu] WNBAReboundsXML.dtd +.IP \[bu] +WNBAScorersXML.dtd .RE .P The GameInfo and SportInfo types do not have their own top-level diff --git a/schema/WNBAScorersXML.dtd b/schema/WNBAScorersXML.dtd new file mode 100644 index 0000000..a32afbc --- /dev/null +++ b/schema/WNBAScorersXML.dtd @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/schemagen/WNBAScorersXML/WNBAScorersXML.xml b/schemagen/WNBAScorersXML/WNBAScorersXML.xml new file mode 100644 index 0000000..fd6960a --- /dev/null +++ b/schemagen/WNBAScorersXML/WNBAScorersXML.xml @@ -0,0 +1,410 @@ + + + +9817 +ACX%SCORING-LEADERS +Statistics +NBA +2001-2002 NBA Top 25 Scoring Leaders ++1 +A.Iverson,PHI +34 +43:35 +29.9 +7.1 +8.9 +.801 +10.9 +27.1 +.401 +1.1 +4.2 +.261 + ++2 +P.Pierce,BOS +40 +40:40 +27.1 +6.3 +7.6 +.822 +9.1 +20.8 +.436 +2.7 +6.6 +.407 + ++3 +K.Bryant,LAL +38 +37:48 +26.4 +6.2 +7.4 +.833 +9.8 +20.4 +.481 +0.6 +2.0 +.312 + ++4 +S.O`Neal,LAL +30 +35:12 +26.1 +5.2 +10.3 +.505 +10.4 +18.6 +.562 +0.0 +0.0 +.000 + ++5 +V.Carter,TOR +41 +40:43 +25.8 +4.0 +5.2 +.767 +9.8 +22.5 +.434 +2.2 +5.8 +.382 + ++6 +T.Duncan,SAN +39 +41:23 +25.4 +7.4 +9.1 +.817 +9.0 +18.0 +.499 +0.0 +0.1 +.000 + ++7 +C.Webber,SAC +18 +38:03 +24.9 +5.2 +6.8 +.756 +9.8 +20.3 +.484 +0.1 +0.3 +.400 + ++8 +T.McGrady,ORL +40 +37:07 +24.7 +5.9 +7.4 +.791 +8.8 +19.7 +.447 +1.2 +3.2 +.367 + ++9 +D.Nowitzki,DAL +40 +37:49 +24.4 +6.5 +7.7 +.850 +8.0 +16.9 +.474 +1.9 +4.9 +.393 + ++10 +K.Malone,UTA +41 +38:43 +24.1 +6.8 +8.4 +.801 +8.6 +18.7 +.462 +0.1 +0.4 +.333 + ++11 +M.Jordan,WAS +38 +36:07 +24.1 +4.7 +5.9 +.795 +9.6 +23.7 +.406 +0.2 +1.1 +.167 + ++12 +J.Stackhouse,DET +35 +35:44 +23.3 +6.7 +7.7 +.871 +7.6 +18.2 +.418 +1.3 +4.6 +.286 + ++13 +A.Walker,BOS +40 +42:36 +22.9 +3.3 +4.4 +.744 +8.3 +21.3 +.391 +3.0 +8.3 +.358 + ++14 +G.Payton,SEA +40 +41:33 +22.8 +3.0 +3.8 +.796 +9.4 +19.9 +.472 +1.0 +3.0 +.333 + ++15 +P.Stojakovic,SAC +39 +39:23 +22.8 +4.3 +4.8 +.883 +8.3 +17.2 +.480 +2.0 +4.5 +.443 + ++16 +N.Van Exel,DEN +40 +39:03 +22.6 +3.2 +4.1 +.780 +8.7 +21.3 +.408 +2.0 +5.9 +.340 + ++17 +R.Allen,MIL +33 +36:00 +22.5 +3.4 +4.0 +.850 +7.9 +16.6 +.475 +3.4 +7.5 +.451 + ++18 +K.Garnett,MIN +40 +39:13 +22.0 +4.2 +5.1 +.832 +8.6 +18.1 +.472 +0.7 +1.8 +.361 + ++19 +G.Robinson,MIL +26 +36:13 +21.8 +3.7 +4.5 +.836 +8.5 +17.8 +.477 +1.1 +3.1 +.346 + ++20 +S.Francis,HOU +23 +39:54 +20.9 +6.0 +7.5 +.802 +7.0 +15.7 +.443 +1.0 +3.2 +.315 + ++21 +S.Cassell,MIL +37 +35:37 +20.2 +4.0 +4.8 +.847 +7.7 +16.7 +.462 +0.8 +2.5 +.326 + ++22 +A.Houston,NY +39 +37:10 +20.2 +3.7 +4.3 +.867 +7.5 +17.0 +.441 +1.5 +3.6 +.415 + ++23 +S.Marbury,PHO +41 +38:26 +20.2 +4.3 +5.5 +.788 +7.4 +16.5 +.446 +1.1 +3.4 +.324 + ++24 +M.Finley,DAL +31 +40:07 +20.1 +3.1 +3.7 +.842 +8.0 +17.9 +.448 +1.0 +3.2 +.320 + ++25 +S.Abdur-Rahim,ATL +39 +37:26 +20.1 +5.6 +6.9 +.804 +7.2 +16.4 +.439 +0.2 +0.8 +.226 + + January 23, 2002, at 04:04 PM ET + diff --git a/src/TSN/XML/SportInfo.hs b/src/TSN/XML/SportInfo.hs index e0b3aca..c2e614d 100644 --- a/src/TSN/XML/SportInfo.hs +++ b/src/TSN/XML/SportInfo.hs @@ -209,7 +209,7 @@ dtds = "WNBAFTPctXML.dtd", "WNBAMinutesXML.dtd", "WNBAReboundsXML.dtd", - "WNBAScorersXML.dtd", -- no dtd + "WNBAScorersXML.dtd", "wnbastandxml.dtd", -- no dtd "WNBAStealsXML.dtd", -- no dtd "WNBATurnoversXML.dtd" -- no dtd @@ -442,7 +442,8 @@ sport_info_test_files = "WNBAFoulsXML.xml", "WNBAFTPctXML.xml", "WNBAMinutesXML.xml", - "WNBAReboundsXML.xml" + "WNBAReboundsXML.xml", + "WNBAScorersXML.xml" ] diff --git a/test/xml/sportinfo/WNBAScorersXML.dtd b/test/xml/sportinfo/WNBAScorersXML.dtd new file mode 100644 index 0000000..a32afbc --- /dev/null +++ b/test/xml/sportinfo/WNBAScorersXML.dtd @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/test/xml/sportinfo/WNBAScorersXML.xml b/test/xml/sportinfo/WNBAScorersXML.xml new file mode 100644 index 0000000..fd6960a --- /dev/null +++ b/test/xml/sportinfo/WNBAScorersXML.xml @@ -0,0 +1,410 @@ + + + +9817 +ACX%SCORING-LEADERS +Statistics +NBA +2001-2002 NBA Top 25 Scoring Leaders ++1 +A.Iverson,PHI +34 +43:35 +29.9 +7.1 +8.9 +.801 +10.9 +27.1 +.401 +1.1 +4.2 +.261 + ++2 +P.Pierce,BOS +40 +40:40 +27.1 +6.3 +7.6 +.822 +9.1 +20.8 +.436 +2.7 +6.6 +.407 + ++3 +K.Bryant,LAL +38 +37:48 +26.4 +6.2 +7.4 +.833 +9.8 +20.4 +.481 +0.6 +2.0 +.312 + ++4 +S.O`Neal,LAL +30 +35:12 +26.1 +5.2 +10.3 +.505 +10.4 +18.6 +.562 +0.0 +0.0 +.000 + ++5 +V.Carter,TOR +41 +40:43 +25.8 +4.0 +5.2 +.767 +9.8 +22.5 +.434 +2.2 +5.8 +.382 + ++6 +T.Duncan,SAN +39 +41:23 +25.4 +7.4 +9.1 +.817 +9.0 +18.0 +.499 +0.0 +0.1 +.000 + ++7 +C.Webber,SAC +18 +38:03 +24.9 +5.2 +6.8 +.756 +9.8 +20.3 +.484 +0.1 +0.3 +.400 + ++8 +T.McGrady,ORL +40 +37:07 +24.7 +5.9 +7.4 +.791 +8.8 +19.7 +.447 +1.2 +3.2 +.367 + ++9 +D.Nowitzki,DAL +40 +37:49 +24.4 +6.5 +7.7 +.850 +8.0 +16.9 +.474 +1.9 +4.9 +.393 + ++10 +K.Malone,UTA +41 +38:43 +24.1 +6.8 +8.4 +.801 +8.6 +18.7 +.462 +0.1 +0.4 +.333 + ++11 +M.Jordan,WAS +38 +36:07 +24.1 +4.7 +5.9 +.795 +9.6 +23.7 +.406 +0.2 +1.1 +.167 + ++12 +J.Stackhouse,DET +35 +35:44 +23.3 +6.7 +7.7 +.871 +7.6 +18.2 +.418 +1.3 +4.6 +.286 + ++13 +A.Walker,BOS +40 +42:36 +22.9 +3.3 +4.4 +.744 +8.3 +21.3 +.391 +3.0 +8.3 +.358 + ++14 +G.Payton,SEA +40 +41:33 +22.8 +3.0 +3.8 +.796 +9.4 +19.9 +.472 +1.0 +3.0 +.333 + ++15 +P.Stojakovic,SAC +39 +39:23 +22.8 +4.3 +4.8 +.883 +8.3 +17.2 +.480 +2.0 +4.5 +.443 + ++16 +N.Van Exel,DEN +40 +39:03 +22.6 +3.2 +4.1 +.780 +8.7 +21.3 +.408 +2.0 +5.9 +.340 + ++17 +R.Allen,MIL +33 +36:00 +22.5 +3.4 +4.0 +.850 +7.9 +16.6 +.475 +3.4 +7.5 +.451 + ++18 +K.Garnett,MIN +40 +39:13 +22.0 +4.2 +5.1 +.832 +8.6 +18.1 +.472 +0.7 +1.8 +.361 + ++19 +G.Robinson,MIL +26 +36:13 +21.8 +3.7 +4.5 +.836 +8.5 +17.8 +.477 +1.1 +3.1 +.346 + ++20 +S.Francis,HOU +23 +39:54 +20.9 +6.0 +7.5 +.802 +7.0 +15.7 +.443 +1.0 +3.2 +.315 + ++21 +S.Cassell,MIL +37 +35:37 +20.2 +4.0 +4.8 +.847 +7.7 +16.7 +.462 +0.8 +2.5 +.326 + ++22 +A.Houston,NY +39 +37:10 +20.2 +3.7 +4.3 +.867 +7.5 +17.0 +.441 +1.5 +3.6 +.415 + ++23 +S.Marbury,PHO +41 +38:26 +20.2 +4.3 +5.5 +.788 +7.4 +16.5 +.446 +1.1 +3.4 +.324 + ++24 +M.Finley,DAL +31 +40:07 +20.1 +3.1 +3.7 +.842 +8.0 +17.9 +.448 +1.0 +3.2 +.320 + ++25 +S.Abdur-Rahim,ATL +39 +37:26 +20.1 +5.6 +6.9 +.804 +7.2 +16.4 +.439 +0.2 +0.8 +.226 + + January 23, 2002, at 04:04 PM ET +