From: Michael Orlitzky Date: Mon, 23 Jun 2014 13:25:55 +0000 (-0400) Subject: Add SportInfo support for NFLGiveTakeXML.dtd. X-Git-Tag: 0.0.6~104 X-Git-Url: https://gitweb.michael.orlitzky.com/?a=commitdiff_plain;h=bea741102a71b7cfa0a66e7dcb2cf7dc856905c2;p=dead%2Fhtsn-import.git Add SportInfo support for NFLGiveTakeXML.dtd. --- diff --git a/doc/man1/htsn-import.1 b/doc/man1/htsn-import.1 index 94a9e53..2f6ffb7 100644 --- a/doc/man1/htsn-import.1 +++ b/doc/man1/htsn-import.1 @@ -310,6 +310,8 @@ NCAA_Conference_Schedule_XML.dtd nflfirstdownxml.dtd .IP \[bu] NFLFumbleLeaderXML.dtd +.IP \[bu] +NFLGiveTakeXML.dtd .RE .P The GameInfo and SportInfo types do not have their own top-level diff --git a/schema/NFLGiveTakeXML.dtd b/schema/NFLGiveTakeXML.dtd new file mode 100644 index 0000000..cec15ef --- /dev/null +++ b/schema/NFLGiveTakeXML.dtd @@ -0,0 +1,34 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/schemagen/NFLGiveTakeXML/NFLGiveTakeXML.xml b/schemagen/NFLGiveTakeXML/NFLGiveTakeXML.xml new file mode 100644 index 0000000..0454992 --- /dev/null +++ b/schemagen/NFLGiveTakeXML/NFLGiveTakeXML.xml @@ -0,0 +1,344 @@ + + + +28017 +ABX%NFL-GIVE-TAKE +Statistics +NFL +2001 NFL Statistics - Take-Aways / Give-Aways + ++New York Jets +17 +16 +33 +8 +5 +13 ++20 + ++Cleveland +25 +6 +31 +11 +7 +18 ++13 + ++Denver +16 +12 +28 +14 +6 +20 ++8 + ++Pittsburgh +11 +7 +18 +5 +8 +13 ++5 + ++San Diego +15 +10 +25 +11 +9 +20 ++5 + ++Seattle +9 +10 +19 +7 +8 +15 ++4 + ++Oakland +9 +6 +15 +4 +9 +13 ++2 + ++New England +15 +6 +21 +10 +11 +21 +0 + ++Tennessee +7 +9 +16 +14 +4 +18 +-2 + ++Jacksonville +7 +7 +14 +7 +10 +17 +-3 + ++Cincinnati +8 +11 +19 +16 +7 +23 +-4 + ++Kansas City +9 +6 +15 +17 +5 +22 +-7 + ++Baltimore +11 +9 +20 +17 +14 +31 +-11 + ++Miami +8 +9 +17 +15 +13 +28 +-11 + ++Indianapolis +8 +9 +17 +17 +12 +29 +-12 + ++Buffalo +5 +5 +10 +15 +12 +27 +-17 + ++AFC Totals +180 +138 +318 +188 +140 +328 +-10 + + + ++Tampa Bay +19 +9 +28 +7 +7 +14 ++14 + ++Philadelphia +9 +14 +23 +6 +8 +14 ++9 + ++New Orleans +13 +11 +24 +9 +8 +17 ++7 + ++San Francisco +15 +6 +21 +10 +5 +15 ++6 + ++Atlanta +13 +8 +21 +10 +6 +16 ++5 + ++Carolina +19 +10 +29 +17 +7 +24 ++5 + ++Green Bay +11 +14 +25 +13 +8 +21 ++4 + ++Chicago +11 +11 +22 +14 +6 +20 ++2 + ++Washington +15 +8 +23 +9 +12 +21 ++2 + ++New York Giants +13 +9 +22 +13 +8 +21 ++1 + ++Arizona +13 +5 +18 +12 +12 +24 +-6 + ++Dallas +8 +14 +22 +16 +13 +29 +-7 + ++St. Louis +15 +10 +25 +15 +18 +33 +-8 + ++Detroit +11 +6 +17 +20 +8 +28 +-11 + ++Minnesota +8 +6 +14 +14 +13 +27 +-13 + ++NFC Totals +193 +141 +334 +185 +139 +324 ++10 + + + December 5, 2001, at 01:12 PM ET + diff --git a/src/TSN/XML/SportInfo.hs b/src/TSN/XML/SportInfo.hs index b1f42ce..eda39f2 100644 --- a/src/TSN/XML/SportInfo.hs +++ b/src/TSN/XML/SportInfo.hs @@ -173,7 +173,7 @@ dtds = "NCAA_Conference_Schedule_XML.dtd", "nflfirstdownxml.dtd", "NFLFumbleLeaderXML.dtd", - "NFLGiveTakeXML.dtd", -- no dtd + "NFLGiveTakeXML.dtd", "NFLGrassTurfDomeOutsideXML.dtd", -- no dtd "NFLInside20XML.dtd", -- no dtd "NFLInterceptionLeadersXML.dtd", -- no dtd @@ -416,7 +416,8 @@ sport_info_test_files = "NBATurnoversXML.xml", "NCAA_Conference_Schedule_XML.xml", "nflfirstdownxml.xml", - "NFLFumbleLeaderXML.xml" + "NFLFumbleLeaderXML.xml", + "NFLGiveTakeXML.xml" ] diff --git a/test/xml/sportinfo/NFLGiveTakeXML.dtd b/test/xml/sportinfo/NFLGiveTakeXML.dtd new file mode 100644 index 0000000..cec15ef --- /dev/null +++ b/test/xml/sportinfo/NFLGiveTakeXML.dtd @@ -0,0 +1,34 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/test/xml/sportinfo/NFLGiveTakeXML.xml b/test/xml/sportinfo/NFLGiveTakeXML.xml new file mode 100644 index 0000000..0454992 --- /dev/null +++ b/test/xml/sportinfo/NFLGiveTakeXML.xml @@ -0,0 +1,344 @@ + + + +28017 +ABX%NFL-GIVE-TAKE +Statistics +NFL +2001 NFL Statistics - Take-Aways / Give-Aways + ++New York Jets +17 +16 +33 +8 +5 +13 ++20 + ++Cleveland +25 +6 +31 +11 +7 +18 ++13 + ++Denver +16 +12 +28 +14 +6 +20 ++8 + ++Pittsburgh +11 +7 +18 +5 +8 +13 ++5 + ++San Diego +15 +10 +25 +11 +9 +20 ++5 + ++Seattle +9 +10 +19 +7 +8 +15 ++4 + ++Oakland +9 +6 +15 +4 +9 +13 ++2 + ++New England +15 +6 +21 +10 +11 +21 +0 + ++Tennessee +7 +9 +16 +14 +4 +18 +-2 + ++Jacksonville +7 +7 +14 +7 +10 +17 +-3 + ++Cincinnati +8 +11 +19 +16 +7 +23 +-4 + ++Kansas City +9 +6 +15 +17 +5 +22 +-7 + ++Baltimore +11 +9 +20 +17 +14 +31 +-11 + ++Miami +8 +9 +17 +15 +13 +28 +-11 + ++Indianapolis +8 +9 +17 +17 +12 +29 +-12 + ++Buffalo +5 +5 +10 +15 +12 +27 +-17 + ++AFC Totals +180 +138 +318 +188 +140 +328 +-10 + + + ++Tampa Bay +19 +9 +28 +7 +7 +14 ++14 + ++Philadelphia +9 +14 +23 +6 +8 +14 ++9 + ++New Orleans +13 +11 +24 +9 +8 +17 ++7 + ++San Francisco +15 +6 +21 +10 +5 +15 ++6 + ++Atlanta +13 +8 +21 +10 +6 +16 ++5 + ++Carolina +19 +10 +29 +17 +7 +24 ++5 + ++Green Bay +11 +14 +25 +13 +8 +21 ++4 + ++Chicago +11 +11 +22 +14 +6 +20 ++2 + ++Washington +15 +8 +23 +9 +12 +21 ++2 + ++New York Giants +13 +9 +22 +13 +8 +21 ++1 + ++Arizona +13 +5 +18 +12 +12 +24 +-6 + ++Dallas +8 +14 +22 +16 +13 +29 +-7 + ++St. Louis +15 +10 +25 +15 +18 +33 +-8 + ++Detroit +11 +6 +17 +20 +8 +28 +-11 + ++Minnesota +8 +6 +14 +14 +13 +27 +-13 + ++NFC Totals +193 +141 +334 +185 +139 +324 ++10 + + + December 5, 2001, at 01:12 PM ET +