From: Michael Orlitzky Date: Sun, 22 Jun 2014 21:48:18 +0000 (-0400) Subject: Add SportInfo support for NBAFTPctXML.dtd. X-Git-Tag: 0.0.6~116 X-Git-Url: https://gitweb.michael.orlitzky.com/?a=commitdiff_plain;h=9cab54923ec3455dc997681136f556ff96fcd31a;p=dead%2Fhtsn-import.git Add SportInfo support for NBAFTPctXML.dtd. --- diff --git a/doc/man1/htsn-import.1 b/doc/man1/htsn-import.1 index 6ea4adf..329deef 100644 --- a/doc/man1/htsn-import.1 +++ b/doc/man1/htsn-import.1 @@ -286,6 +286,8 @@ nbadivisionsxml.dtd NBAFGPctXML.dtd .IP \[bu] NBAFoulsXML.dtd +.IP \[bu] +NBAFTPctXML.dtd .RE .P The GameInfo and SportInfo types do not have their own top-level diff --git a/schema/NBAFTPctXML.dtd b/schema/NBAFTPctXML.dtd new file mode 100644 index 0000000..8ef635a --- /dev/null +++ b/schema/NBAFTPctXML.dtd @@ -0,0 +1,38 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/schemagen/NBAFTPctXML/NBAFTPctXML.xml b/schemagen/NBAFTPctXML/NBAFTPctXML.xml new file mode 100644 index 0000000..a31fa09 --- /dev/null +++ b/schemagen/NBAFTPctXML/NBAFTPctXML.xml @@ -0,0 +1,335 @@ + + + +28230717 +ACX%FT-PCT-LEADERS +Statistics +NBA +2001-2002 NBA Top 25 Freethrow Percentage Leaders ++1 +Reggie Miller,IND +43 +36:23 +162 +3.8 +177 +4.1 +727 +16.9 +.915 + ++2 +Richard Hamilton,WAS +25 +34:52 +122 +4.9 +136 +5.4 +494 +19.8 +.897 + ++3 +Steve Nash,DAL +42 +37:31 +143 +3.4 +161 +3.8 +812 +19.3 +.888 + ++4 +John Stockton,UTA +41 +31:24 +123 +3.0 +139 +3.4 +518 +12.6 +.885 + ++5 +Predrag Stojakovic,SAC +39 +39:23 +166 +4.3 +188 +4.8 +888 +22.8 +.883 + ++6 +Troy Hudson,ORL +42 +19:15 +83 +2.0 +94 +2.2 +387 +9.2 +.883 + ++7 +P.J. Brown,CHA +39 +31:30 +79 +2.0 +90 +2.3 +297 +7.6 +.878 + ++8 +Chauncey Billups,MIN +40 +24:51 +77 +1.9 +88 +2.2 +448 +11.2 +.875 + ++9 +Jerry Stackhouse,DET +35 +35:44 +236 +6.7 +271 +7.7 +814 +23.3 +.871 + ++10 +Damon Stoudamire,POR +34 +36:44 +79 +2.3 +91 +2.7 +463 +13.6 +.868 + ++11 +Allan Houston,NY +39 +37:10 +144 +3.7 +166 +4.3 +789 +20.2 +.867 + ++12 +Desmond Mason,SEA +33 +31:25 +88 +2.7 +102 +3.1 +384 +11.6 +.863 + ++13 +Kurt Thomas,NY +39 +31:10 +107 +2.7 +125 +3.2 +420 +10.8 +.856 + ++14 +James Posey,DEN +41 +33:35 +98 +2.4 +115 +2.8 +468 +11.4 +.852 + ++15 +Jason Terry,ATL +38 +36:55 +144 +3.8 +169 +4.4 +710 +18.7 +.852 + ++16 +Darrell Armstrong,ORL +43 +32:33 +86 +2.0 +101 +2.3 +516 +12.0 +.851 + ++17 +Dirk Nowitzki,DAL +40 +37:49 +260 +6.5 +306 +7.7 +977 +24.4 +.850 + ++18 +Ray Allen,MIL +33 +36:00 +113 +3.4 +133 +4.0 +744 +22.5 +.850 + ++19 +Derek Anderson,POR +33 +31:07 +105 +3.2 +124 +3.8 +403 +12.2 +.847 + ++20 +Sam Cassell,MIL +37 +35:37 +149 +4.0 +176 +4.8 +749 +20.2 +.847 + ++21 +Michael Finley,DAL +31 +40:07 +96 +3.1 +114 +3.7 +624 +20.1 +.842 + ++22 +Lamond Murray,CLE +36 +33:16 +117 +3.3 +139 +3.9 +599 +16.6 +.842 + ++23 +Eddie Jones,MIA +39 +39:23 +147 +3.8 +175 +4.5 +728 +18.7 +.840 + ++24 +Mike Bibby,SAC +39 +33:21 +78 +2.0 +93 +2.4 +550 +14.1 +.839 + ++25 +Glenn Robinson,MIL +26 +36:13 +97 +3.7 +116 +4.5 +567 +21.8 +.836 + + January 23, 2002, at 03:37 PM ET + diff --git a/src/TSN/XML/SportInfo.hs b/src/TSN/XML/SportInfo.hs index bc2fdcc..d21a3f1 100644 --- a/src/TSN/XML/SportInfo.hs +++ b/src/TSN/XML/SportInfo.hs @@ -161,7 +161,7 @@ dtds = "nbadivisionsxml.dtd", "NBAFGPctXML.dtd", "NBAFoulsXML.dtd", - "NBAFTPctXML.dtd", -- no dtd + "NBAFTPctXML.dtd", "NBAMinutesXML.dtd", -- no dtd "NBAReboundsXML.dtd", -- no dtd "NBAScorersXML.dtd", -- no dtd @@ -404,7 +404,8 @@ sport_info_test_files = "nbadaysxml.xml", "nbadivisionsxml.xml", "NBAFGPctXML.xml", - "NBAFoulsXML.xml" + "NBAFoulsXML.xml", + "NBAFTPctXML.xml" ] diff --git a/test/xml/sportinfo/NBAFTPctXML.dtd b/test/xml/sportinfo/NBAFTPctXML.dtd new file mode 100644 index 0000000..8ef635a --- /dev/null +++ b/test/xml/sportinfo/NBAFTPctXML.dtd @@ -0,0 +1,38 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/test/xml/sportinfo/NBAFTPctXML.xml b/test/xml/sportinfo/NBAFTPctXML.xml new file mode 100644 index 0000000..a31fa09 --- /dev/null +++ b/test/xml/sportinfo/NBAFTPctXML.xml @@ -0,0 +1,335 @@ + + + +28230717 +ACX%FT-PCT-LEADERS +Statistics +NBA +2001-2002 NBA Top 25 Freethrow Percentage Leaders ++1 +Reggie Miller,IND +43 +36:23 +162 +3.8 +177 +4.1 +727 +16.9 +.915 + ++2 +Richard Hamilton,WAS +25 +34:52 +122 +4.9 +136 +5.4 +494 +19.8 +.897 + ++3 +Steve Nash,DAL +42 +37:31 +143 +3.4 +161 +3.8 +812 +19.3 +.888 + ++4 +John Stockton,UTA +41 +31:24 +123 +3.0 +139 +3.4 +518 +12.6 +.885 + ++5 +Predrag Stojakovic,SAC +39 +39:23 +166 +4.3 +188 +4.8 +888 +22.8 +.883 + ++6 +Troy Hudson,ORL +42 +19:15 +83 +2.0 +94 +2.2 +387 +9.2 +.883 + ++7 +P.J. Brown,CHA +39 +31:30 +79 +2.0 +90 +2.3 +297 +7.6 +.878 + ++8 +Chauncey Billups,MIN +40 +24:51 +77 +1.9 +88 +2.2 +448 +11.2 +.875 + ++9 +Jerry Stackhouse,DET +35 +35:44 +236 +6.7 +271 +7.7 +814 +23.3 +.871 + ++10 +Damon Stoudamire,POR +34 +36:44 +79 +2.3 +91 +2.7 +463 +13.6 +.868 + ++11 +Allan Houston,NY +39 +37:10 +144 +3.7 +166 +4.3 +789 +20.2 +.867 + ++12 +Desmond Mason,SEA +33 +31:25 +88 +2.7 +102 +3.1 +384 +11.6 +.863 + ++13 +Kurt Thomas,NY +39 +31:10 +107 +2.7 +125 +3.2 +420 +10.8 +.856 + ++14 +James Posey,DEN +41 +33:35 +98 +2.4 +115 +2.8 +468 +11.4 +.852 + ++15 +Jason Terry,ATL +38 +36:55 +144 +3.8 +169 +4.4 +710 +18.7 +.852 + ++16 +Darrell Armstrong,ORL +43 +32:33 +86 +2.0 +101 +2.3 +516 +12.0 +.851 + ++17 +Dirk Nowitzki,DAL +40 +37:49 +260 +6.5 +306 +7.7 +977 +24.4 +.850 + ++18 +Ray Allen,MIL +33 +36:00 +113 +3.4 +133 +4.0 +744 +22.5 +.850 + ++19 +Derek Anderson,POR +33 +31:07 +105 +3.2 +124 +3.8 +403 +12.2 +.847 + ++20 +Sam Cassell,MIL +37 +35:37 +149 +4.0 +176 +4.8 +749 +20.2 +.847 + ++21 +Michael Finley,DAL +31 +40:07 +96 +3.1 +114 +3.7 +624 +20.1 +.842 + ++22 +Lamond Murray,CLE +36 +33:16 +117 +3.3 +139 +3.9 +599 +16.6 +.842 + ++23 +Eddie Jones,MIA +39 +39:23 +147 +3.8 +175 +4.5 +728 +18.7 +.840 + ++24 +Mike Bibby,SAC +39 +33:21 +78 +2.0 +93 +2.4 +550 +14.1 +.839 + ++25 +Glenn Robinson,MIL +26 +36:13 +97 +3.7 +116 +4.5 +567 +21.8 +.836 + + January 23, 2002, at 03:37 PM ET +