From: Michael Orlitzky Date: Sun, 22 Jun 2014 21:39:52 +0000 (-0400) Subject: Add SportInfo support for NBAFGPctXML.dtd. X-Git-Tag: 0.0.6~118 X-Git-Url: https://gitweb.michael.orlitzky.com/?a=commitdiff_plain;h=b4b15dad064fdd910a4ad8f36b6969ce909e05b2;p=dead%2Fhtsn-import.git Add SportInfo support for NBAFGPctXML.dtd. --- diff --git a/doc/man1/htsn-import.1 b/doc/man1/htsn-import.1 index 7b01aea..91887b6 100644 --- a/doc/man1/htsn-import.1 +++ b/doc/man1/htsn-import.1 @@ -282,6 +282,8 @@ nbaconfrecxml.dtd nbadaysxml.dtd .IP \[bu] nbadivisionsxml.dtd +.IP \[bu] +NBAFGPctXML.dtd .RE .P The GameInfo and SportInfo types do not have their own top-level diff --git a/schema/NBAFGPctXML.dtd b/schema/NBAFGPctXML.dtd new file mode 100644 index 0000000..2f4c20e --- /dev/null +++ b/schema/NBAFGPctXML.dtd @@ -0,0 +1,38 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/schemagen/NBAFGPctXML/NBAFGPctXML.xml b/schemagen/NBAFGPctXML/NBAFGPctXML.xml new file mode 100644 index 0000000..32766dc --- /dev/null +++ b/schemagen/NBAFGPctXML/NBAFGPctXML.xml @@ -0,0 +1,335 @@ + + + +270617 +ACX%FG-PCT-LEADERS +Statistics +NBA +2001-2002 NBA Top 25 Field Goal Percentage Leaders ++1 +Shaquille O`Neal,LAL +30 +35:12 +313 +10.4 +557 +18.6 +782 +26.1 +.562 + ++2 +Donyell Marshall,UTA +34 +32:52 +223 +6.6 +400 +11.8 +558 +16.4 +.558 + ++3 +Alonzo Mourning,MIA +35 +32:18 +207 +5.9 +393 +11.2 +537 +15.3 +.527 + ++4 +Elton Brand,LAC +42 +36:21 +275 +6.5 +529 +12.6 +778 +18.5 +.520 + ++5 +Wally Szczerbiak,MIN +40 +38:49 +320 +8.0 +619 +15.5 +788 +19.7 +.517 + ++6 +Corliss Williamson,DET +35 +21:08 +176 +5.0 +342 +9.8 +443 +12.7 +.515 + ++7 +Pau Gasol,MEM +40 +36:27 +261 +6.5 +508 +12.7 +669 +16.7 +.514 + ++8 +Vin Baker,SEA +32 +34:13 +218 +6.8 +432 +13.5 +535 +16.7 +.505 + ++9 +Tim Duncan,SAN +39 +41:23 +351 +9.0 +703 +18.0 +992 +25.4 +.499 + ++10 +John Stockton,UTA +41 +31:24 +189 +4.6 +379 +9.2 +518 +12.6 +.499 + ++11 +Steve Nash,DAL +42 +37:31 +293 +7.0 +592 +14.1 +812 +19.3 +.495 + ++12 +Elden Campbell,CHA +40 +30:07 +217 +5.4 +442 +11.1 +598 +15.0 +.491 + ++13 +Wesley Person,CLE +40 +34:49 +211 +5.3 +430 +10.8 +538 +13.5 +.491 + ++14 +Jermaine O`Neal,IND +36 +36:05 +263 +7.3 +536 +14.9 +657 +18.3 +.491 + ++15 +Bonzi Wells,POR +34 +32:21 +235 +6.9 +479 +14.1 +576 +16.9 +.491 + ++16 +Lee Nailon,CHA +40 +26:07 +207 +5.2 +425 +10.6 +478 +12.0 +.487 + ++17 +Shawn Marion,PHO +41 +36:42 +324 +7.9 +666 +16.2 +748 +18.2 +.486 + ++18 +Reggie Miller,IND +43 +36:23 +232 +5.4 +481 +11.2 +727 +16.9 +.482 + ++19 +Steve Smith,SAN +39 +29:55 +175 +4.5 +363 +9.3 +490 +12.6 +.482 + ++20 +Kobe Bryant,LAL +38 +37:48 +373 +9.8 +776 +20.4 +1004 +26.4 +.481 + ++21 +Predrag Stojakovic,SAC +39 +39:23 +322 +8.3 +671 +17.2 +888 +22.8 +.480 + ++22 +Al Harrington,IND +43 +29:48 +227 +5.3 +474 +11.0 +569 +13.2 +.479 + ++23 +Glenn Robinson,MIL +26 +36:13 +221 +8.5 +463 +17.8 +567 +21.8 +.477 + ++24 +Ray Allen,MIL +33 +36:00 +260 +7.9 +547 +16.6 +744 +22.5 +.475 + ++25 +Kenny Thomas,HOU +35 +33:06 +186 +5.3 +392 +11.2 +462 +13.2 +.474 + + January 23, 2002, at 03:36 PM ET + diff --git a/src/TSN/XML/SportInfo.hs b/src/TSN/XML/SportInfo.hs index ba31ba2..b3bce4e 100644 --- a/src/TSN/XML/SportInfo.hs +++ b/src/TSN/XML/SportInfo.hs @@ -159,7 +159,7 @@ dtds = "nbaconfrecxml.dtd", "nbadaysxml.dtd", "nbadivisionsxml.dtd", - "NBAFGPctXML.dtd", -- no dtd + "NBAFGPctXML.dtd", "NBAFoulsXML.dtd", -- no dtd "NBAFTPctXML.dtd", -- no dtd "NBAMinutesXML.dtd", -- no dtd @@ -402,7 +402,8 @@ sport_info_test_files = "NBABlocksXML.xml", "nbaconfrecxml.xml", "nbadaysxml.xml", - "nbadivisionsxml.xml" + "nbadivisionsxml.xml", + "NBAFGPctXML.xml" ] diff --git a/test/xml/sportinfo/NBAFGPctXML.dtd b/test/xml/sportinfo/NBAFGPctXML.dtd new file mode 100644 index 0000000..2f4c20e --- /dev/null +++ b/test/xml/sportinfo/NBAFGPctXML.dtd @@ -0,0 +1,38 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/test/xml/sportinfo/NBAFGPctXML.xml b/test/xml/sportinfo/NBAFGPctXML.xml new file mode 100644 index 0000000..32766dc --- /dev/null +++ b/test/xml/sportinfo/NBAFGPctXML.xml @@ -0,0 +1,335 @@ + + + +270617 +ACX%FG-PCT-LEADERS +Statistics +NBA +2001-2002 NBA Top 25 Field Goal Percentage Leaders ++1 +Shaquille O`Neal,LAL +30 +35:12 +313 +10.4 +557 +18.6 +782 +26.1 +.562 + ++2 +Donyell Marshall,UTA +34 +32:52 +223 +6.6 +400 +11.8 +558 +16.4 +.558 + ++3 +Alonzo Mourning,MIA +35 +32:18 +207 +5.9 +393 +11.2 +537 +15.3 +.527 + ++4 +Elton Brand,LAC +42 +36:21 +275 +6.5 +529 +12.6 +778 +18.5 +.520 + ++5 +Wally Szczerbiak,MIN +40 +38:49 +320 +8.0 +619 +15.5 +788 +19.7 +.517 + ++6 +Corliss Williamson,DET +35 +21:08 +176 +5.0 +342 +9.8 +443 +12.7 +.515 + ++7 +Pau Gasol,MEM +40 +36:27 +261 +6.5 +508 +12.7 +669 +16.7 +.514 + ++8 +Vin Baker,SEA +32 +34:13 +218 +6.8 +432 +13.5 +535 +16.7 +.505 + ++9 +Tim Duncan,SAN +39 +41:23 +351 +9.0 +703 +18.0 +992 +25.4 +.499 + ++10 +John Stockton,UTA +41 +31:24 +189 +4.6 +379 +9.2 +518 +12.6 +.499 + ++11 +Steve Nash,DAL +42 +37:31 +293 +7.0 +592 +14.1 +812 +19.3 +.495 + ++12 +Elden Campbell,CHA +40 +30:07 +217 +5.4 +442 +11.1 +598 +15.0 +.491 + ++13 +Wesley Person,CLE +40 +34:49 +211 +5.3 +430 +10.8 +538 +13.5 +.491 + ++14 +Jermaine O`Neal,IND +36 +36:05 +263 +7.3 +536 +14.9 +657 +18.3 +.491 + ++15 +Bonzi Wells,POR +34 +32:21 +235 +6.9 +479 +14.1 +576 +16.9 +.491 + ++16 +Lee Nailon,CHA +40 +26:07 +207 +5.2 +425 +10.6 +478 +12.0 +.487 + ++17 +Shawn Marion,PHO +41 +36:42 +324 +7.9 +666 +16.2 +748 +18.2 +.486 + ++18 +Reggie Miller,IND +43 +36:23 +232 +5.4 +481 +11.2 +727 +16.9 +.482 + ++19 +Steve Smith,SAN +39 +29:55 +175 +4.5 +363 +9.3 +490 +12.6 +.482 + ++20 +Kobe Bryant,LAL +38 +37:48 +373 +9.8 +776 +20.4 +1004 +26.4 +.481 + ++21 +Predrag Stojakovic,SAC +39 +39:23 +322 +8.3 +671 +17.2 +888 +22.8 +.480 + ++22 +Al Harrington,IND +43 +29:48 +227 +5.3 +474 +11.0 +569 +13.2 +.479 + ++23 +Glenn Robinson,MIL +26 +36:13 +221 +8.5 +463 +17.8 +567 +21.8 +.477 + ++24 +Ray Allen,MIL +33 +36:00 +260 +7.9 +547 +16.6 +744 +22.5 +.475 + ++25 +Kenny Thomas,HOU +35 +33:06 +186 +5.3 +392 +11.2 +462 +13.2 +.474 + + January 23, 2002, at 03:36 PM ET +