From: Michael Orlitzky Date: Sun, 22 Jun 2014 19:37:44 +0000 (-0400) Subject: Add SportInfo support for NBA3PPctXML.dtd. X-Git-Tag: 0.0.6~124 X-Git-Url: https://gitweb.michael.orlitzky.com/?a=commitdiff_plain;h=c567625dc68e140470f96f5ade57171bfd3002ce;p=dead%2Fhtsn-import.git Add SportInfo support for NBA3PPctXML.dtd. --- diff --git a/doc/man1/htsn-import.1 b/doc/man1/htsn-import.1 index 3abdb66..5886f14 100644 --- a/doc/man1/htsn-import.1 +++ b/doc/man1/htsn-import.1 @@ -270,6 +270,8 @@ MLB_Pitching_Win_Percentage_Leaders.dtd MLB_Pitching_WL_Leaders.dtd .IP \[bu] NBA_Team_Stats_XML.dtd +.IP \[bu] +NBA3PPctXML.dtd .RE .P The GameInfo and SportInfo types do not have their own top-level diff --git a/schema/NBA3PPctXML.dtd b/schema/NBA3PPctXML.dtd new file mode 100644 index 0000000..8358f00 --- /dev/null +++ b/schema/NBA3PPctXML.dtd @@ -0,0 +1,38 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/schemagen/NBA3PPctXML/NBA3PPctXML.xml b/schemagen/NBA3PPctXML/NBA3PPctXML.xml new file mode 100644 index 0000000..caada6d --- /dev/null +++ b/schemagen/NBA3PPctXML/NBA3PPctXML.xml @@ -0,0 +1,335 @@ + + + +808107117 +ACX%3PTFG-PCT-LEADERS +Statistics +NBA +2001-2002 NBA Top 25 Three Point Percentage Leaders ++1 +Steve Smith,SAN +39 +29:55 +70 +1.8 +134 +3.4 +490 +12.6 +.522 + ++2 +Wesley Person,CLE +40 +34:49 +72 +1.8 +150 +3.8 +538 +13.5 +.480 + ++3 +Hubert Davis,WAS +31 +29:23 +47 +1.5 +100 +3.2 +282 +9.1 +.470 + ++4 +Jon Barry,DET +39 +23:38 +53 +1.4 +117 +3.0 +303 +7.8 +.453 + ++5 +Ray Allen,MIL +33 +36:00 +111 +3.4 +246 +7.5 +744 +22.5 +.451 + ++6 +Eric Piatkowski,LAC +31 +23:00 +41 +1.3 +91 +2.9 +242 +7.8 +.451 + ++7 +Vladimir Radmanovic,SEA +34 +17:31 +36 +1.1 +80 +2.4 +198 +5.8 +.450 + ++8 +Wally Szczerbiak,MIN +40 +38:49 +39 +1.0 +87 +2.2 +788 +19.7 +.448 + ++9 +Michael Redd,MIL +37 +21:21 +43 +1.2 +96 +2.6 +406 +11.0 +.448 + ++10 +Predrag Stojakovic,SAC +39 +39:23 +78 +2.0 +176 +4.5 +888 +22.8 +.443 + ++11 +Steve Nash,DAL +42 +37:31 +83 +2.0 +189 +4.5 +812 +19.3 +.439 + ++12 +Reggie Miller,IND +43 +36:23 +101 +2.3 +230 +5.3 +727 +16.9 +.439 + ++13 +Terry Porter,SAN +39 +19:26 +38 +1.0 +89 +2.3 +256 +6.6 +.427 + ++14 +Chauncey Billups,MIN +40 +24:51 +61 +1.5 +143 +3.6 +448 +11.2 +.427 + ++15 +Cuttino Mobley,HOU +38 +41:14 +78 +2.1 +183 +4.8 +738 +19.4 +.426 + ++16 +Mark Jackson,NY +39 +29:52 +32 +0.8 +76 +1.9 +309 +7.9 +.421 + ++17 +Aaron McKie,PHI +33 +33:21 +44 +1.3 +105 +3.2 +425 +12.9 +.419 + ++18 +Chucky Atkins,DET +36 +27:20 +60 +1.7 +144 +4.0 +374 +10.4 +.417 + ++19 +Allan Houston,NY +39 +37:10 +59 +1.5 +142 +3.6 +789 +20.2 +.415 + ++20 +Anthony Peeler,MIN +40 +26:28 +56 +1.4 +135 +3.4 +368 +9.2 +.415 + ++21 +Raef LaFrentz,DEN +41 +31:58 +48 +1.2 +116 +2.8 +561 +13.7 +.414 + ++22 +Brent Barry,SEA +40 +37:10 +77 +1.9 +188 +4.7 +500 +12.5 +.410 + ++23 +Derek Fisher,LAL +26 +27:13 +55 +2.1 +135 +5.2 +273 +10.5 +.407 + ++24 +Chris Whitney,WAS +39 +25:55 +57 +1.5 +140 +3.6 +353 +9.1 +.407 + ++25 +Paul Pierce,BOS +40 +40:40 +107 +2.7 +263 +6.6 +1083 +27.1 +.407 + + January 23, 2002, at 03:37 PM ET + diff --git a/src/TSN/XML/SportInfo.hs b/src/TSN/XML/SportInfo.hs index e54e774..f18215d 100644 --- a/src/TSN/XML/SportInfo.hs +++ b/src/TSN/XML/SportInfo.hs @@ -153,7 +153,7 @@ dtds = "MLB_Pitching_Win_Percentage_Leaders.dtd", "MLB_Pitching_WL_Leaders.dtd", "NBA_Team_Stats_XML.dtd", - "NBA3PPctXML.dtd", -- no dtd + "NBA3PPctXML.dtd", "NBAAssistsXML.dtd", -- no dtd "NBABlocksXML.dtd", -- no dtd "nbaconfrecxml.dtd", -- no dtd @@ -396,7 +396,8 @@ sport_info_test_files = "MLB_Pitching_Wild_Pitches_Leaders.xml", "MLB_Pitching_Win_Percentage_Leaders.xml", "MLB_Pitching_WL_Leaders.xml", - "NBA_Team_Stats_XML.xml" + "NBA_Team_Stats_XML.xml", + "NBA3PPctXML.xml" ] diff --git a/test/xml/sportinfo/NBA3PPctXML.dtd b/test/xml/sportinfo/NBA3PPctXML.dtd new file mode 100644 index 0000000..8358f00 --- /dev/null +++ b/test/xml/sportinfo/NBA3PPctXML.dtd @@ -0,0 +1,38 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/test/xml/sportinfo/NBA3PPctXML.xml b/test/xml/sportinfo/NBA3PPctXML.xml new file mode 100644 index 0000000..caada6d --- /dev/null +++ b/test/xml/sportinfo/NBA3PPctXML.xml @@ -0,0 +1,335 @@ + + + +808107117 +ACX%3PTFG-PCT-LEADERS +Statistics +NBA +2001-2002 NBA Top 25 Three Point Percentage Leaders ++1 +Steve Smith,SAN +39 +29:55 +70 +1.8 +134 +3.4 +490 +12.6 +.522 + ++2 +Wesley Person,CLE +40 +34:49 +72 +1.8 +150 +3.8 +538 +13.5 +.480 + ++3 +Hubert Davis,WAS +31 +29:23 +47 +1.5 +100 +3.2 +282 +9.1 +.470 + ++4 +Jon Barry,DET +39 +23:38 +53 +1.4 +117 +3.0 +303 +7.8 +.453 + ++5 +Ray Allen,MIL +33 +36:00 +111 +3.4 +246 +7.5 +744 +22.5 +.451 + ++6 +Eric Piatkowski,LAC +31 +23:00 +41 +1.3 +91 +2.9 +242 +7.8 +.451 + ++7 +Vladimir Radmanovic,SEA +34 +17:31 +36 +1.1 +80 +2.4 +198 +5.8 +.450 + ++8 +Wally Szczerbiak,MIN +40 +38:49 +39 +1.0 +87 +2.2 +788 +19.7 +.448 + ++9 +Michael Redd,MIL +37 +21:21 +43 +1.2 +96 +2.6 +406 +11.0 +.448 + ++10 +Predrag Stojakovic,SAC +39 +39:23 +78 +2.0 +176 +4.5 +888 +22.8 +.443 + ++11 +Steve Nash,DAL +42 +37:31 +83 +2.0 +189 +4.5 +812 +19.3 +.439 + ++12 +Reggie Miller,IND +43 +36:23 +101 +2.3 +230 +5.3 +727 +16.9 +.439 + ++13 +Terry Porter,SAN +39 +19:26 +38 +1.0 +89 +2.3 +256 +6.6 +.427 + ++14 +Chauncey Billups,MIN +40 +24:51 +61 +1.5 +143 +3.6 +448 +11.2 +.427 + ++15 +Cuttino Mobley,HOU +38 +41:14 +78 +2.1 +183 +4.8 +738 +19.4 +.426 + ++16 +Mark Jackson,NY +39 +29:52 +32 +0.8 +76 +1.9 +309 +7.9 +.421 + ++17 +Aaron McKie,PHI +33 +33:21 +44 +1.3 +105 +3.2 +425 +12.9 +.419 + ++18 +Chucky Atkins,DET +36 +27:20 +60 +1.7 +144 +4.0 +374 +10.4 +.417 + ++19 +Allan Houston,NY +39 +37:10 +59 +1.5 +142 +3.6 +789 +20.2 +.415 + ++20 +Anthony Peeler,MIN +40 +26:28 +56 +1.4 +135 +3.4 +368 +9.2 +.415 + ++21 +Raef LaFrentz,DEN +41 +31:58 +48 +1.2 +116 +2.8 +561 +13.7 +.414 + ++22 +Brent Barry,SEA +40 +37:10 +77 +1.9 +188 +4.7 +500 +12.5 +.410 + ++23 +Derek Fisher,LAL +26 +27:13 +55 +2.1 +135 +5.2 +273 +10.5 +.407 + ++24 +Chris Whitney,WAS +39 +25:55 +57 +1.5 +140 +3.6 +353 +9.1 +.407 + ++25 +Paul Pierce,BOS +40 +40:40 +107 +2.7 +263 +6.6 +1083 +27.1 +.407 + + January 23, 2002, at 03:37 PM ET +