From: Michael Orlitzky Date: Wed, 18 Jun 2014 15:07:21 +0000 (-0400) Subject: Add SportInfo support for mlbstandxml.dtd. X-Git-Tag: 0.0.6~152 X-Git-Url: https://gitweb.michael.orlitzky.com/?a=commitdiff_plain;h=d7e4dbd6211fa1f869d22892747db424ea103577;p=dead%2Fhtsn-import.git Add SportInfo support for mlbstandxml.dtd. --- diff --git a/doc/man1/htsn-import.1 b/doc/man1/htsn-import.1 index c013e25..dc1c1f0 100644 --- a/doc/man1/htsn-import.1 +++ b/doc/man1/htsn-import.1 @@ -214,6 +214,8 @@ MLBSacrificesXML.dtd MLBSBSuccessXML.dtd .IP \[bu] mlbsluggingpctxml.dtd +.IP \[bu] +mlbstandxml.dtd .RE .P The GameInfo and SportInfo types do not have their own top-level diff --git a/schema/mlbstandxml.dtd b/schema/mlbstandxml.dtd new file mode 100644 index 0000000..ae49a7e --- /dev/null +++ b/schema/mlbstandxml.dtd @@ -0,0 +1,25 @@ + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/schemagen/mlbstandxml/mlbstandxml.xml b/schemagen/mlbstandxml/mlbstandxml.xml new file mode 100644 index 0000000..fc3dfa9 --- /dev/null +++ b/schemagen/mlbstandxml/mlbstandxml.xml @@ -0,0 +1,387 @@ + + + +18830444 +AAL!MLB-STANDINGS +Standings +MLB +2013 MLB Standings +(Complete through Wednesday, August 7th) + + ++Atlanta +69 +45 +.605 +--- +38-15 +31-30 +28-16 +Won 12 + + ++Washington +54 +59 +.478 +14.5 +31-27 +23-32 +20-23 +Lost 3 + + ++Philadelphia +51 +61 +.455 +17.0 +28-26 +23-35 +25-19 +Won 1 + + ++NY Mets +50 +60 +.455 +17.0 +23-32 +27-28 +22-31 +Won 1 + + ++Miami +43 +68 +.387 +24.5 +26-32 +17-36 +20-26 +Lost 3 + + + + ++Pittsburgh +68 +44 +.607 +--- +39-20 +29-24 +30-18 +Won 3 + + ++St. Louis +66 +46 +.589 +2.0 +33-18 +33-28 +25-17 +Won 1 + + ++Cincinnati +62 +51 +.549 +6.5 +34-19 +28-32 +26-21 +Won 1 + + ++Chicago Cubs +49 +63 +.438 +19.0 +23-33 +26-30 +16-31 +Lost 5 + + ++Milwaukee +48 +65 +.425 +20.5 +27-31 +21-34 +17-27 +Won 1 + + + + ++Los Angeles +62 +50 +.554 +--- +31-25 +31-25 +23-27 +Lost 1 + + ++Arizona +57 +55 +.509 +5.0 +31-24 +26-31 +23-26 +Won 1 + + ++San Diego +52 +61 +.460 +10.5 +31-26 +21-35 +23-28 +Lost 1 + + ++Colorado +52 +62 +.456 +11.0 +31-26 +21-36 +28-24 +Lost 3 + + ++San Francisco +50 +62 +.446 +12.0 +29-28 +21-34 +29-21 +Lost 1 + + + + + + ++Boston +69 +46 +.600 +--- +39-21 +30-25 +28-20 +Won 1 + + ++Tampa Bay +66 +46 +.589 +1.5 +37-21 +29-25 +28-26 +Lost 1 + + ++Baltimore +62 +51 +.549 +6.0 +33-25 +29-26 +24-23 +Won 1 + + ++NY Yankees +57 +55 +.509 +10.5 +29-25 +28-30 +22-21 +Lost 3 + + ++Toronto +53 +60 +.469 +15.0 +28-28 +25-32 +18-30 +Won 3 + + + + ++Detroit +66 +45 +.595 +--- +37-19 +29-26 +29-16 +Won 10 + + ++Cleveland +62 +51 +.549 +5.0 +37-21 +25-30 +27-22 +Lost 2 + + ++Kansas City +57 +53 +.518 +8.5 +28-25 +29-28 +28-20 +Lost 1 + + ++Minnesota +49 +61 +.445 +16.5 +26-27 +23-34 +19-26 +Won 1 + + ++Chicago WSox +42 +69 +.378 +24.0 +24-28 +18-41 +12-31 +Won 2 + + + + ++Oakland +64 +48 +.571 +--- +35-20 +29-28 +30-21 +Lost 2 + + ++Texas +64 +50 +.561 +1.0 +33-24 +31-26 +32-14 +Won 3 + + ++Seattle +52 +61 +.460 +12.5 +29-30 +23-31 +27-24 +Lost 2 + + ++LA Angels +51 +61 +.455 +13.0 +30-31 +21-30 +18-32 +Lost 3 + + ++Houston +37 +75 +.330 +27.0 +19-38 +18-37 +15-31 +Lost 1 + + + + + August 7, 2013, at 08:49 AM ET + diff --git a/src/TSN/XML/SportInfo.hs b/src/TSN/XML/SportInfo.hs index d7fa647..06795a9 100644 --- a/src/TSN/XML/SportInfo.hs +++ b/src/TSN/XML/SportInfo.hs @@ -124,7 +124,7 @@ dtds = "MLBSacrificesXML.dtd", "MLBSBSuccessXML.dtd", "mlbsluggingpctxml.dtd", - "mlbstandxml.dtd", -- no dtd + "mlbstandxml.dtd", "mlbstandxml_preseason.dtd", -- no dtd "mlbstolenbasexml.dtd", -- no dtd "mlbtotalbasesleadersxml.dtd", -- no dtd @@ -368,7 +368,8 @@ sport_info_test_files = "MLBSacFliesXML.xml", "MLBSacrificesXML.xml", "MLBSBSuccessXML.xml", - "mlbsluggingpctxml.xml" + "mlbsluggingpctxml.xml", + "mlbstandxml.xml" ] diff --git a/test/xml/sportinfo/mlbstandxml.dtd b/test/xml/sportinfo/mlbstandxml.dtd new file mode 100644 index 0000000..ae49a7e --- /dev/null +++ b/test/xml/sportinfo/mlbstandxml.dtd @@ -0,0 +1,25 @@ + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/test/xml/sportinfo/mlbstandxml.xml b/test/xml/sportinfo/mlbstandxml.xml new file mode 100644 index 0000000..fc3dfa9 --- /dev/null +++ b/test/xml/sportinfo/mlbstandxml.xml @@ -0,0 +1,387 @@ + + + +18830444 +AAL!MLB-STANDINGS +Standings +MLB +2013 MLB Standings +(Complete through Wednesday, August 7th) + + ++Atlanta +69 +45 +.605 +--- +38-15 +31-30 +28-16 +Won 12 + + ++Washington +54 +59 +.478 +14.5 +31-27 +23-32 +20-23 +Lost 3 + + ++Philadelphia +51 +61 +.455 +17.0 +28-26 +23-35 +25-19 +Won 1 + + ++NY Mets +50 +60 +.455 +17.0 +23-32 +27-28 +22-31 +Won 1 + + ++Miami +43 +68 +.387 +24.5 +26-32 +17-36 +20-26 +Lost 3 + + + + ++Pittsburgh +68 +44 +.607 +--- +39-20 +29-24 +30-18 +Won 3 + + ++St. Louis +66 +46 +.589 +2.0 +33-18 +33-28 +25-17 +Won 1 + + ++Cincinnati +62 +51 +.549 +6.5 +34-19 +28-32 +26-21 +Won 1 + + ++Chicago Cubs +49 +63 +.438 +19.0 +23-33 +26-30 +16-31 +Lost 5 + + ++Milwaukee +48 +65 +.425 +20.5 +27-31 +21-34 +17-27 +Won 1 + + + + ++Los Angeles +62 +50 +.554 +--- +31-25 +31-25 +23-27 +Lost 1 + + ++Arizona +57 +55 +.509 +5.0 +31-24 +26-31 +23-26 +Won 1 + + ++San Diego +52 +61 +.460 +10.5 +31-26 +21-35 +23-28 +Lost 1 + + ++Colorado +52 +62 +.456 +11.0 +31-26 +21-36 +28-24 +Lost 3 + + ++San Francisco +50 +62 +.446 +12.0 +29-28 +21-34 +29-21 +Lost 1 + + + + + + ++Boston +69 +46 +.600 +--- +39-21 +30-25 +28-20 +Won 1 + + ++Tampa Bay +66 +46 +.589 +1.5 +37-21 +29-25 +28-26 +Lost 1 + + ++Baltimore +62 +51 +.549 +6.0 +33-25 +29-26 +24-23 +Won 1 + + ++NY Yankees +57 +55 +.509 +10.5 +29-25 +28-30 +22-21 +Lost 3 + + ++Toronto +53 +60 +.469 +15.0 +28-28 +25-32 +18-30 +Won 3 + + + + ++Detroit +66 +45 +.595 +--- +37-19 +29-26 +29-16 +Won 10 + + ++Cleveland +62 +51 +.549 +5.0 +37-21 +25-30 +27-22 +Lost 2 + + ++Kansas City +57 +53 +.518 +8.5 +28-25 +29-28 +28-20 +Lost 1 + + ++Minnesota +49 +61 +.445 +16.5 +26-27 +23-34 +19-26 +Won 1 + + ++Chicago WSox +42 +69 +.378 +24.0 +24-28 +18-41 +12-31 +Won 2 + + + + ++Oakland +64 +48 +.571 +--- +35-20 +29-28 +30-21 +Lost 2 + + ++Texas +64 +50 +.561 +1.0 +33-24 +31-26 +32-14 +Won 3 + + ++Seattle +52 +61 +.460 +12.5 +29-30 +23-31 +27-24 +Lost 2 + + ++LA Angels +51 +61 +.455 +13.0 +30-31 +21-30 +18-32 +Lost 3 + + ++Houston +37 +75 +.330 +27.0 +19-38 +18-37 +15-31 +Lost 1 + + + + + August 7, 2013, at 08:49 AM ET +