From: Michael Orlitzky Date: Sun, 22 Jun 2014 21:10:06 +0000 (-0400) Subject: Add SportInfo support for NBABlocksXML.dtd. X-Git-Tag: 0.0.6~122 X-Git-Url: https://gitweb.michael.orlitzky.com/?a=commitdiff_plain;h=97f1b27f37185aac8c570270540a1d4219605273;p=dead%2Fhtsn-import.git Add SportInfo support for NBABlocksXML.dtd. --- diff --git a/doc/man1/htsn-import.1 b/doc/man1/htsn-import.1 index aaad200..974c375 100644 --- a/doc/man1/htsn-import.1 +++ b/doc/man1/htsn-import.1 @@ -274,6 +274,8 @@ NBA_Team_Stats_XML.dtd NBA3PPctXML.dtd .IP \[bu] NBAAssistsXML.dtd +.IP \[bu] +NBABlocksXML.dtd .RE .P The GameInfo and SportInfo types do not have their own top-level diff --git a/schema/NBABlocksXML.dtd b/schema/NBABlocksXML.dtd new file mode 100644 index 0000000..5e371ef --- /dev/null +++ b/schema/NBABlocksXML.dtd @@ -0,0 +1,36 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/schemagen/NBABlocksXML/NBABlocksXML.xml b/schemagen/NBABlocksXML/NBABlocksXML.xml new file mode 100644 index 0000000..650bcf5 --- /dev/null +++ b/schemagen/NBABlocksXML/NBABlocksXML.xml @@ -0,0 +1,370 @@ + + + +88735217 +ACX%BLOCKS-LEADERS +Statistics +NBA +2001-2002 NBA Top 25 Blocks Leaders ++1 +B.Wallace,DET +39 +34:13 +127 +3.3 +40 +1.0 +277 +7.1 + ++2 +R.LaFrentz,DEN +41 +31:58 +121 +3.0 +47 +1.1 +561 +13.7 + ++3 +D.Mutombo,PHI +41 +36:13 +109 +2.7 +40 +1.0 +442 +10.8 + ++4 +T.Duncan,SAN +39 +41:23 +108 +2.8 +139 +3.6 +992 +25.4 + ++5 +P.Gasol,MEM +40 +36:27 +96 +2.4 +75 +1.9 +669 +16.7 + ++6 +A.Mourning,MIA +35 +32:18 +92 +2.6 +44 +1.3 +537 +15.3 + ++7 +J.O`Neal,IND +36 +36:05 +88 +2.4 +55 +1.5 +657 +18.3 + ++8 +M.Olowokandi,LAC +41 +28:05 +84 +2.0 +33 +0.8 +294 +7.2 + ++9 +E.Brand,LAC +42 +36:21 +80 +1.9 +93 +2.2 +778 +18.5 + ++10 +S.O`Neal,LAL +30 +35:12 +76 +2.5 +100 +3.3 +782 +26.1 + ++11 +E.Dampier,GS +31 +25:50 +75 +2.4 +35 +1.1 +293 +9.5 + ++12 +E.Griffin,HOU +40 +23:36 +74 +1.9 +26 +0.7 +353 +8.8 + ++13 +K.Clark,TOR +41 +24:04 +73 +1.8 +44 +1.1 +401 +9.8 + ++ +A.Kirilenko,UTA +41 +23:33 +73 +1.8 +34 +0.8 +391 +9.5 + ++ +E.Campbell,CHA +40 +30:07 +73 +1.8 +61 +1.5 +598 +15.0 + ++14 +K.Garnett,MIN +40 +39:13 +70 +1.8 +234 +5.9 +878 +22.0 + ++15 +D.Robinson,SAN +39 +28:26 +69 +1.8 +36 +0.9 +432 +11.1 + ++16 +G.Ostertag,UTA +39 +17:43 +68 +1.7 +33 +0.8 +156 +4.0 + ++17 +C.Mihm,CLE +41 +27:20 +67 +1.6 +15 +0.4 +401 +9.8 + ++ +K.Martin,NJ +38 +35:06 +67 +1.8 +99 +2.6 +582 +15.3 + ++18 +H.Olajuwon,TOR +33 +26:34 +62 +1.9 +41 +1.2 +271 +8.2 + ++ +A.Foyle,GS +37 +15:27 +62 +1.7 +17 +0.5 +159 +4.3 + ++19 +T.MacCulloch,NJ +41 +25:32 +60 +1.5 +54 +1.3 +425 +10.4 + ++20 +R.Nesterovic,MIN +40 +26:52 +58 +1.5 +37 +0.9 +355 +8.9 + ++ +S.Walker,LAL +38 +25:26 +58 +1.5 +32 +0.8 +279 +7.3 + ++21 +R.Wallace,POR +41 +38:24 +53 +1.3 +79 +1.9 +808 +19.7 + ++22 +D.Miles,LAC +42 +25:20 +52 +1.2 +82 +2.0 +378 +9.0 + ++23 +B.Outlaw,PHO +42 +20:34 +51 +1.2 +49 +1.2 +161 +3.8 + ++24 +B.Haywood,WAS +27 +24:44 +49 +1.8 +14 +0.5 +181 +6.7 + ++25 +S.Marion,PHO +41 +36:42 +48 +1.2 +82 +2.0 +748 +18.2 + + January 23, 2002, at 03:39 PM ET + diff --git a/src/TSN/XML/SportInfo.hs b/src/TSN/XML/SportInfo.hs index c756290..132dcef 100644 --- a/src/TSN/XML/SportInfo.hs +++ b/src/TSN/XML/SportInfo.hs @@ -155,7 +155,7 @@ dtds = "NBA_Team_Stats_XML.dtd", "NBA3PPctXML.dtd", "NBAAssistsXML.dtd", - "NBABlocksXML.dtd", -- no dtd + "NBABlocksXML.dtd", "nbaconfrecxml.dtd", -- no dtd "nbadaysxml.dtd", -- no dtd "nbadivisionsxml.dtd", -- no dtd @@ -398,7 +398,8 @@ sport_info_test_files = "MLB_Pitching_WL_Leaders.xml", "NBA_Team_Stats_XML.xml", "NBA3PPctXML.xml", - "NBAAssistsXML.xml" + "NBAAssistsXML.xml", + "NBABlocksXML.xml" ] diff --git a/test/xml/sportinfo/NBABlocksXML.dtd b/test/xml/sportinfo/NBABlocksXML.dtd new file mode 100644 index 0000000..5e371ef --- /dev/null +++ b/test/xml/sportinfo/NBABlocksXML.dtd @@ -0,0 +1,36 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/test/xml/sportinfo/NBABlocksXML.xml b/test/xml/sportinfo/NBABlocksXML.xml new file mode 100644 index 0000000..650bcf5 --- /dev/null +++ b/test/xml/sportinfo/NBABlocksXML.xml @@ -0,0 +1,370 @@ + + + +88735217 +ACX%BLOCKS-LEADERS +Statistics +NBA +2001-2002 NBA Top 25 Blocks Leaders ++1 +B.Wallace,DET +39 +34:13 +127 +3.3 +40 +1.0 +277 +7.1 + ++2 +R.LaFrentz,DEN +41 +31:58 +121 +3.0 +47 +1.1 +561 +13.7 + ++3 +D.Mutombo,PHI +41 +36:13 +109 +2.7 +40 +1.0 +442 +10.8 + ++4 +T.Duncan,SAN +39 +41:23 +108 +2.8 +139 +3.6 +992 +25.4 + ++5 +P.Gasol,MEM +40 +36:27 +96 +2.4 +75 +1.9 +669 +16.7 + ++6 +A.Mourning,MIA +35 +32:18 +92 +2.6 +44 +1.3 +537 +15.3 + ++7 +J.O`Neal,IND +36 +36:05 +88 +2.4 +55 +1.5 +657 +18.3 + ++8 +M.Olowokandi,LAC +41 +28:05 +84 +2.0 +33 +0.8 +294 +7.2 + ++9 +E.Brand,LAC +42 +36:21 +80 +1.9 +93 +2.2 +778 +18.5 + ++10 +S.O`Neal,LAL +30 +35:12 +76 +2.5 +100 +3.3 +782 +26.1 + ++11 +E.Dampier,GS +31 +25:50 +75 +2.4 +35 +1.1 +293 +9.5 + ++12 +E.Griffin,HOU +40 +23:36 +74 +1.9 +26 +0.7 +353 +8.8 + ++13 +K.Clark,TOR +41 +24:04 +73 +1.8 +44 +1.1 +401 +9.8 + ++ +A.Kirilenko,UTA +41 +23:33 +73 +1.8 +34 +0.8 +391 +9.5 + ++ +E.Campbell,CHA +40 +30:07 +73 +1.8 +61 +1.5 +598 +15.0 + ++14 +K.Garnett,MIN +40 +39:13 +70 +1.8 +234 +5.9 +878 +22.0 + ++15 +D.Robinson,SAN +39 +28:26 +69 +1.8 +36 +0.9 +432 +11.1 + ++16 +G.Ostertag,UTA +39 +17:43 +68 +1.7 +33 +0.8 +156 +4.0 + ++17 +C.Mihm,CLE +41 +27:20 +67 +1.6 +15 +0.4 +401 +9.8 + ++ +K.Martin,NJ +38 +35:06 +67 +1.8 +99 +2.6 +582 +15.3 + ++18 +H.Olajuwon,TOR +33 +26:34 +62 +1.9 +41 +1.2 +271 +8.2 + ++ +A.Foyle,GS +37 +15:27 +62 +1.7 +17 +0.5 +159 +4.3 + ++19 +T.MacCulloch,NJ +41 +25:32 +60 +1.5 +54 +1.3 +425 +10.4 + ++20 +R.Nesterovic,MIN +40 +26:52 +58 +1.5 +37 +0.9 +355 +8.9 + ++ +S.Walker,LAL +38 +25:26 +58 +1.5 +32 +0.8 +279 +7.3 + ++21 +R.Wallace,POR +41 +38:24 +53 +1.3 +79 +1.9 +808 +19.7 + ++22 +D.Miles,LAC +42 +25:20 +52 +1.2 +82 +2.0 +378 +9.0 + ++23 +B.Outlaw,PHO +42 +20:34 +51 +1.2 +49 +1.2 +161 +3.8 + ++24 +B.Haywood,WAS +27 +24:44 +49 +1.8 +14 +0.5 +181 +6.7 + ++25 +S.Marion,PHO +41 +36:42 +48 +1.2 +82 +2.0 +748 +18.2 + + January 23, 2002, at 03:39 PM ET +