From: Michael Orlitzky Date: Sun, 22 Jun 2014 22:21:40 +0000 (-0400) Subject: Add SportInfo support for NBAScorersXML.dtd. X-Git-Tag: 0.0.6~113 X-Git-Url: https://gitweb.michael.orlitzky.com/?a=commitdiff_plain;h=d8550887f728a0169fc0b999e13d0ecf8e006021;p=dead%2Fhtsn-import.git Add SportInfo support for NBAScorersXML.dtd. --- diff --git a/doc/man1/htsn-import.1 b/doc/man1/htsn-import.1 index d94cca5..a9ed675 100644 --- a/doc/man1/htsn-import.1 +++ b/doc/man1/htsn-import.1 @@ -292,6 +292,8 @@ NBAFTPctXML.dtd NBAMinutesXML.dtd .IP \[bu] NBAReboundsXML.dtd +.IP \[bu] +NBAScorersXML.dtd .RE .P The GameInfo and SportInfo types do not have their own top-level diff --git a/schema/NBAScorersXML.dtd b/schema/NBAScorersXML.dtd new file mode 100644 index 0000000..d2176c2 --- /dev/null +++ b/schema/NBAScorersXML.dtd @@ -0,0 +1,31 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/schemagen/NBAScorersXML/NBAScorersXML.xml b/schemagen/NBAScorersXML/NBAScorersXML.xml new file mode 100644 index 0000000..510a01b --- /dev/null +++ b/schemagen/NBAScorersXML/NBAScorersXML.xml @@ -0,0 +1,560 @@ + + + +2087 +ACX%SCORING-LEADERS +Statistics +NBA +2009-2010 NBA Top 25 Scoring Leaders ++1 +C.Anthony,DEN +13 +36:36 +30.5 +9.0 +117 +10.5 +136 +.860 +10.3 +134 +21.5 +280 +.479 +0.8 +11 +2.5 +32 +.344 + ++2 +K.Bryant,LAL +13 +37:37 +29.8 +7.0 +91 +8.1 +105 +.867 +11.2 +146 +23.7 +308 +.474 +0.4 +5 +2.2 +28 +.179 + ++3 +L.James,CLE +14 +37:54 +29.4 +8.1 +113 +10.3 +144 +.785 +9.9 +138 +18.7 +262 +.527 +1.6 +23 +4.4 +62 +.371 + ++4 +D.Wade,MIA +13 +38:40 +28.1 +8.5 +111 +11.1 +144 +.771 +9.2 +119 +20.8 +270 +.441 +1.2 +16 +4.2 +54 +.296 + ++5 +K.Durant,OKC +14 +38:22 +27.1 +7.7 +108 +9.1 +127 +.850 +9.2 +129 +20.6 +289 +.446 +0.9 +13 +4.0 +56 +.232 + ++6 +D.Nowitzki,DAL +13 +38:32 +26.9 +7.7 +100 +8.5 +111 +.901 +9.2 +119 +20.6 +268 +.444 +0.9 +12 +2.6 +34 +.353 + ++7 +C.Bosh,TOR +14 +35:55 +26.6 +9.1 +127 +11.8 +165 +.770 +8.6 +120 +16.9 +236 +.508 +0.4 +6 +0.6 +8 +.750 + ++8 +B.Jennings,MIL +11 +34:54 +25.3 +4.0 +44 +5.2 +57 +.772 +9.4 +103 +19.5 +215 +.479 +2.5 +28 +5.2 +57 +.491 + ++9 +D.Granger,IND +11 +37:01 +24.2 +5.5 +61 +6.8 +75 +.813 +7.8 +86 +18.4 +202 +.426 +3.0 +33 +8.6 +95 +.347 + ++10 +J.Johnson,ATL +14 +38:43 +22.6 +3.9 +55 +4.5 +63 +.873 +8.6 +120 +19.2 +269 +.446 +1.5 +21 +4.6 +65 +.323 + ++11 +G.Arenas,WAS +12 +36:24 +22.5 +5.6 +67 +7.6 +91 +.736 +7.5 +90 +19.3 +231 +.390 +1.9 +23 +5.2 +62 +.371 + ++12 +R.Gay,MEM +13 +39:44 +21.8 +4.4 +57 +5.7 +74 +.770 +8.3 +108 +16.4 +213 +.507 +0.8 +10 +2.1 +27 +.370 + ++13 +C.Kaman,LAC +14 +37:08 +20.9 +3.9 +54 +5.1 +72 +.750 +8.5 +119 +16.0 +224 +.531 +0.0 +0 +0.0 +0 +.000 + ++14 +M.Ellis,GSW +12 +38:35 +20.8 +3.2 +38 +4.3 +51 +.745 +8.5 +102 +19.2 +230 +.443 +0.6 +7 +1.3 +15 +.467 + ++15 +B.Gordon,DET +14 +37:22 +20.6 +4.9 +68 +5.8 +81 +.840 +7.0 +98 +15.9 +223 +.439 +1.7 +24 +4.6 +65 +.369 + ++16 +A.Harrington,NYK +13 +31:53 +20.2 +4.5 +59 +5.3 +69 +.855 +7.1 +92 +15.8 +205 +.449 +1.5 +19 +5.1 +66 +.288 + ++17 +B.Roy,POR +15 +36:26 +19.9 +5.2 +78 +6.5 +97 +.804 +6.7 +101 +15.1 +226 +.447 +1.3 +19 +3.7 +55 +.345 + ++18 +A.Stoudemire,PHO +14 +35:05 +19.9 +5.6 +78 +7.6 +107 +.729 +7.1 +100 +12.9 +180 +.556 +0.0 +0 +0.1 +1 +.000 + ++19 +P.Pierce,BOS +14 +35:19 +19.6 +5.1 +71 +6.1 +85 +.835 +6.3 +88 +12.6 +177 +.497 +2.0 +28 +4.1 +57 +.491 + ++20 +Z.Randolph,MEM +13 +35:15 +18.4 +3.5 +45 +4.1 +53 +.849 +7.5 +97 +14.5 +189 +.513 +0.0 +0 +0.2 +3 +.000 + ++21 +C.Boozer,UTA +13 +36:00 +18.3 +3.8 +50 +4.6 +60 +.833 +7.2 +94 +14.4 +187 +.503 +0.0 +0 +0.0 +0 +.000 + ++22 +T.Ariza,HOU +14 +38:32 +18.3 +2.7 +38 +3.5 +49 +.776 +6.6 +92 +16.9 +237 +.388 +2.4 +34 +7.1 +99 +.343 + ++23 +T.Evans,SAC +11 +35:09 +18.2 +4.4 +48 +5.8 +64 +.750 +6.5 +72 +15.0 +165 +.436 +0.7 +8 +2.3 +25 +.320 + ++24 +A.Iguodala,PHI +13 +39:21 +18.2 +3.1 +40 +4.8 +62 +.645 +7.0 +91 +15.8 +206 +.442 +1.1 +14 +3.5 +46 +.304 + ++25 +A.Bargnani,TOR +14 +33:53 +17.9 +3.0 +42 +3.4 +47 +.894 +6.5 +91 +13.5 +189 +.481 +1.9 +26 +4.4 +62 +.419 + + November 23, 2009, at 02:08 PM ET + diff --git a/src/TSN/XML/SportInfo.hs b/src/TSN/XML/SportInfo.hs index 5e70677..3f7461a 100644 --- a/src/TSN/XML/SportInfo.hs +++ b/src/TSN/XML/SportInfo.hs @@ -164,7 +164,7 @@ dtds = "NBAFTPctXML.dtd", "NBAMinutesXML.dtd", "NBAReboundsXML.dtd", - "NBAScorersXML.dtd", -- no dtd + "NBAScorersXML.dtd", "nbastandxml.dtd", -- no dtd "NBAStealsXML.dtd", -- no dtd "nbateamleadersxml.dtd", -- no dtd @@ -407,7 +407,8 @@ sport_info_test_files = "NBAFoulsXML.xml", "NBAFTPctXML.xml", "NBAMinutesXML.xml", - "NBAReboundsXML.xml" + "NBAReboundsXML.xml", + "NBAScorersXML.xml" ] diff --git a/test/xml/sportinfo/NBAScorersXML.dtd b/test/xml/sportinfo/NBAScorersXML.dtd new file mode 100644 index 0000000..d2176c2 --- /dev/null +++ b/test/xml/sportinfo/NBAScorersXML.dtd @@ -0,0 +1,31 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/test/xml/sportinfo/NBAScorersXML.xml b/test/xml/sportinfo/NBAScorersXML.xml new file mode 100644 index 0000000..510a01b --- /dev/null +++ b/test/xml/sportinfo/NBAScorersXML.xml @@ -0,0 +1,560 @@ + + + +2087 +ACX%SCORING-LEADERS +Statistics +NBA +2009-2010 NBA Top 25 Scoring Leaders ++1 +C.Anthony,DEN +13 +36:36 +30.5 +9.0 +117 +10.5 +136 +.860 +10.3 +134 +21.5 +280 +.479 +0.8 +11 +2.5 +32 +.344 + ++2 +K.Bryant,LAL +13 +37:37 +29.8 +7.0 +91 +8.1 +105 +.867 +11.2 +146 +23.7 +308 +.474 +0.4 +5 +2.2 +28 +.179 + ++3 +L.James,CLE +14 +37:54 +29.4 +8.1 +113 +10.3 +144 +.785 +9.9 +138 +18.7 +262 +.527 +1.6 +23 +4.4 +62 +.371 + ++4 +D.Wade,MIA +13 +38:40 +28.1 +8.5 +111 +11.1 +144 +.771 +9.2 +119 +20.8 +270 +.441 +1.2 +16 +4.2 +54 +.296 + ++5 +K.Durant,OKC +14 +38:22 +27.1 +7.7 +108 +9.1 +127 +.850 +9.2 +129 +20.6 +289 +.446 +0.9 +13 +4.0 +56 +.232 + ++6 +D.Nowitzki,DAL +13 +38:32 +26.9 +7.7 +100 +8.5 +111 +.901 +9.2 +119 +20.6 +268 +.444 +0.9 +12 +2.6 +34 +.353 + ++7 +C.Bosh,TOR +14 +35:55 +26.6 +9.1 +127 +11.8 +165 +.770 +8.6 +120 +16.9 +236 +.508 +0.4 +6 +0.6 +8 +.750 + ++8 +B.Jennings,MIL +11 +34:54 +25.3 +4.0 +44 +5.2 +57 +.772 +9.4 +103 +19.5 +215 +.479 +2.5 +28 +5.2 +57 +.491 + ++9 +D.Granger,IND +11 +37:01 +24.2 +5.5 +61 +6.8 +75 +.813 +7.8 +86 +18.4 +202 +.426 +3.0 +33 +8.6 +95 +.347 + ++10 +J.Johnson,ATL +14 +38:43 +22.6 +3.9 +55 +4.5 +63 +.873 +8.6 +120 +19.2 +269 +.446 +1.5 +21 +4.6 +65 +.323 + ++11 +G.Arenas,WAS +12 +36:24 +22.5 +5.6 +67 +7.6 +91 +.736 +7.5 +90 +19.3 +231 +.390 +1.9 +23 +5.2 +62 +.371 + ++12 +R.Gay,MEM +13 +39:44 +21.8 +4.4 +57 +5.7 +74 +.770 +8.3 +108 +16.4 +213 +.507 +0.8 +10 +2.1 +27 +.370 + ++13 +C.Kaman,LAC +14 +37:08 +20.9 +3.9 +54 +5.1 +72 +.750 +8.5 +119 +16.0 +224 +.531 +0.0 +0 +0.0 +0 +.000 + ++14 +M.Ellis,GSW +12 +38:35 +20.8 +3.2 +38 +4.3 +51 +.745 +8.5 +102 +19.2 +230 +.443 +0.6 +7 +1.3 +15 +.467 + ++15 +B.Gordon,DET +14 +37:22 +20.6 +4.9 +68 +5.8 +81 +.840 +7.0 +98 +15.9 +223 +.439 +1.7 +24 +4.6 +65 +.369 + ++16 +A.Harrington,NYK +13 +31:53 +20.2 +4.5 +59 +5.3 +69 +.855 +7.1 +92 +15.8 +205 +.449 +1.5 +19 +5.1 +66 +.288 + ++17 +B.Roy,POR +15 +36:26 +19.9 +5.2 +78 +6.5 +97 +.804 +6.7 +101 +15.1 +226 +.447 +1.3 +19 +3.7 +55 +.345 + ++18 +A.Stoudemire,PHO +14 +35:05 +19.9 +5.6 +78 +7.6 +107 +.729 +7.1 +100 +12.9 +180 +.556 +0.0 +0 +0.1 +1 +.000 + ++19 +P.Pierce,BOS +14 +35:19 +19.6 +5.1 +71 +6.1 +85 +.835 +6.3 +88 +12.6 +177 +.497 +2.0 +28 +4.1 +57 +.491 + ++20 +Z.Randolph,MEM +13 +35:15 +18.4 +3.5 +45 +4.1 +53 +.849 +7.5 +97 +14.5 +189 +.513 +0.0 +0 +0.2 +3 +.000 + ++21 +C.Boozer,UTA +13 +36:00 +18.3 +3.8 +50 +4.6 +60 +.833 +7.2 +94 +14.4 +187 +.503 +0.0 +0 +0.0 +0 +.000 + ++22 +T.Ariza,HOU +14 +38:32 +18.3 +2.7 +38 +3.5 +49 +.776 +6.6 +92 +16.9 +237 +.388 +2.4 +34 +7.1 +99 +.343 + ++23 +T.Evans,SAC +11 +35:09 +18.2 +4.4 +48 +5.8 +64 +.750 +6.5 +72 +15.0 +165 +.436 +0.7 +8 +2.3 +25 +.320 + ++24 +A.Iguodala,PHI +13 +39:21 +18.2 +3.1 +40 +4.8 +62 +.645 +7.0 +91 +15.8 +206 +.442 +1.1 +14 +3.5 +46 +.304 + ++25 +A.Bargnani,TOR +14 +33:53 +17.9 +3.0 +42 +3.4 +47 +.894 +6.5 +91 +13.5 +189 +.481 +1.9 +26 +4.4 +62 +.419 + + November 23, 2009, at 02:08 PM ET +