]> gitweb.michael.orlitzky.com - dead/htsn-import.git/commitdiff
Add SportInfo support for mlbstandxml.dtd.
authorMichael Orlitzky <michael@orlitzky.com>
Wed, 18 Jun 2014 15:07:21 +0000 (11:07 -0400)
committerMichael Orlitzky <michael@orlitzky.com>
Wed, 18 Jun 2014 15:07:21 +0000 (11:07 -0400)
doc/man1/htsn-import.1
schema/mlbstandxml.dtd [new file with mode: 0644]
schemagen/mlbstandxml/mlbstandxml.xml [new file with mode: 0644]
src/TSN/XML/SportInfo.hs
test/xml/sportinfo/mlbstandxml.dtd [new file with mode: 0644]
test/xml/sportinfo/mlbstandxml.xml [new file with mode: 0644]

index c013e25e039c99aa507ccb3cfe956d1f8620b0ff..dc1c1f04e0dcfa26a9b39d0170de207511de3f17 100644 (file)
@@ -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 (file)
index 0000000..ae49a7e
--- /dev/null
@@ -0,0 +1,25 @@
+<!ELEMENT XML_File_ID (#PCDATA)>
+<!ELEMENT heading (#PCDATA)>
+<!ELEMENT category (#PCDATA)>
+<!ELEMENT sport (#PCDATA)>
+<!ELEMENT Title (#PCDATA)>
+<!ELEMENT Complete (#PCDATA)>
+<!ELEMENT team (#PCDATA)>
+<!ELEMENT won (#PCDATA)>
+<!ELEMENT lost (#PCDATA)>
+<!ELEMENT percentage (#PCDATA)>
+<!ELEMENT GB (#PCDATA)>
+<!ELEMENT home (#PCDATA)>
+<!ELEMENT away (#PCDATA)>
+<!ELEMENT divrec (#PCDATA)>
+<!ELEMENT streak (#PCDATA)>
+<!ELEMENT post EMPTY>
+<!ELEMENT listing ( ( team, won, lost, percentage, GB, home, away, divrec, streak, post ) )>
+<!ELEMENT division ( listing* )>
+<!ELEMENT league ( division* )>
+<!ELEMENT time_stamp (#PCDATA)>
+<!ELEMENT message ( ( XML_File_ID, heading, category, sport, Title, Complete, league*, time_stamp ) )>
+
+<!ATTLIST team teamid CDATA #REQUIRED>
+<!ATTLIST division type CDATA #REQUIRED>
+<!ATTLIST league type CDATA #REQUIRED>
diff --git a/schemagen/mlbstandxml/mlbstandxml.xml b/schemagen/mlbstandxml/mlbstandxml.xml
new file mode 100644 (file)
index 0000000..fc3dfa9
--- /dev/null
@@ -0,0 +1,387 @@
+<?xml version="1.0" encoding="UTF-8" standalone="no"?>\r
+<!DOCTYPE message PUBLIC "-//TSN//DTD Standings 1.0/EN" "mlbstandxml.dtd">\r
+<message>\r
+<XML_File_ID>18830444</XML_File_ID>\r
+<heading>AAL!MLB-STANDINGS</heading>\r
+<category>Standings</category>\r
+<sport>MLB</sport>\r
+<Title>2013 MLB Standings</Title>\r
+<Complete>(Complete through Wednesday, August 7th)</Complete>\r
+<league type="National">\r
+<division type="East">\r
+<listing>\r
+<team teamid="001">Atlanta</team>\r
+<won>69</won>\r
+<lost>45</lost>\r
+<percentage>.605</percentage>\r
+<GB>---</GB>\r
+<home>38-15</home>\r
+<away>31-30</away>\r
+<divrec>28-16</divrec>\r
+<streak>Won 12</streak>\r
+<post/>\r
+</listing>\r
+<listing>\r
+<team teamid="006">Washington</team>\r
+<won>54</won>\r
+<lost>59</lost>\r
+<percentage>.478</percentage>\r
+<GB>14.5</GB>\r
+<home>31-27</home>\r
+<away>23-32</away>\r
+<divrec>20-23</divrec>\r
+<streak>Lost 3</streak>\r
+<post/>\r
+</listing>\r
+<listing>\r
+<team teamid="008">Philadelphia</team>\r
+<won>51</won>\r
+<lost>61</lost>\r
+<percentage>.455</percentage>\r
+<GB>17.0</GB>\r
+<home>28-26</home>\r
+<away>23-35</away>\r
+<divrec>25-19</divrec>\r
+<streak>Won 1</streak>\r
+<post/>\r
+</listing>\r
+<listing>\r
+<team teamid="007">NY Mets</team>\r
+<won>50</won>\r
+<lost>60</lost>\r
+<percentage>.455</percentage>\r
+<GB>17.0</GB>\r
+<home>23-32</home>\r
+<away>27-28</away>\r
+<divrec>22-31</divrec>\r
+<streak>Won 1</streak>\r
+<post/>\r
+</listing>\r
+<listing>\r
+<team teamid="014">Miami</team>\r
+<won>43</won>\r
+<lost>68</lost>\r
+<percentage>.387</percentage>\r
+<GB>24.5</GB>\r
+<home>26-32</home>\r
+<away>17-36</away>\r
+<divrec>20-26</divrec>\r
+<streak>Lost 3</streak>\r
+<post/>\r
+</listing>\r
+</division>\r
+<division type="Central">\r
+<listing>\r
+<team teamid="009">Pittsburgh</team>\r
+<won>68</won>\r
+<lost>44</lost>\r
+<percentage>.607</percentage>\r
+<GB>---</GB>\r
+<home>39-20</home>\r
+<away>29-24</away>\r
+<divrec>30-18</divrec>\r
+<streak>Won 3</streak>\r
+<post/>\r
+</listing>\r
+<listing>\r
+<team teamid="012">St. Louis</team>\r
+<won>66</won>\r
+<lost>46</lost>\r
+<percentage>.589</percentage>\r
+<GB>2.0</GB>\r
+<home>33-18</home>\r
+<away>33-28</away>\r
+<divrec>25-17</divrec>\r
+<streak>Won 1</streak>\r
+<post/>\r
+</listing>\r
+<listing>\r
+<team teamid="003">Cincinnati</team>\r
+<won>62</won>\r
+<lost>51</lost>\r
+<percentage>.549</percentage>\r
+<GB>6.5</GB>\r
+<home>34-19</home>\r
+<away>28-32</away>\r
+<divrec>26-21</divrec>\r
+<streak>Won 1</streak>\r
+<post/>\r
+</listing>\r
+<listing>\r
+<team teamid="002">Chicago Cubs</team>\r
+<won>49</won>\r
+<lost>63</lost>\r
+<percentage>.438</percentage>\r
+<GB>19.0</GB>\r
+<home>23-33</home>\r
+<away>26-30</away>\r
+<divrec>16-31</divrec>\r
+<streak>Lost 5</streak>\r
+<post/>\r
+</listing>\r
+<listing>\r
+<team teamid="034">Milwaukee</team>\r
+<won>48</won>\r
+<lost>65</lost>\r
+<percentage>.425</percentage>\r
+<GB>20.5</GB>\r
+<home>27-31</home>\r
+<away>21-34</away>\r
+<divrec>17-27</divrec>\r
+<streak>Won 1</streak>\r
+<post/>\r
+</listing>\r
+</division>\r
+<division type="West">\r
+<listing>\r
+<team teamid="005">Los Angeles</team>\r
+<won>62</won>\r
+<lost>50</lost>\r
+<percentage>.554</percentage>\r
+<GB>---</GB>\r
+<home>31-25</home>\r
+<away>31-25</away>\r
+<divrec>23-27</divrec>\r
+<streak>Lost 1</streak>\r
+<post/>\r
+</listing>\r
+<listing>\r
+<team teamid="055">Arizona</team>\r
+<won>57</won>\r
+<lost>55</lost>\r
+<percentage>.509</percentage>\r
+<GB>5.0</GB>\r
+<home>31-24</home>\r
+<away>26-31</away>\r
+<divrec>23-26</divrec>\r
+<streak>Won 1</streak>\r
+<post/>\r
+</listing>\r
+<listing>\r
+<team teamid="010">San Diego</team>\r
+<won>52</won>\r
+<lost>61</lost>\r
+<percentage>.460</percentage>\r
+<GB>10.5</GB>\r
+<home>31-26</home>\r
+<away>21-35</away>\r
+<divrec>23-28</divrec>\r
+<streak>Lost 1</streak>\r
+<post/>\r
+</listing>\r
+<listing>\r
+<team teamid="013">Colorado</team>\r
+<won>52</won>\r
+<lost>62</lost>\r
+<percentage>.456</percentage>\r
+<GB>11.0</GB>\r
+<home>31-26</home>\r
+<away>21-36</away>\r
+<divrec>28-24</divrec>\r
+<streak>Lost 3</streak>\r
+<post/>\r
+</listing>\r
+<listing>\r
+<team teamid="011">San Francisco</team>\r
+<won>50</won>\r
+<lost>62</lost>\r
+<percentage>.446</percentage>\r
+<GB>12.0</GB>\r
+<home>29-28</home>\r
+<away>21-34</away>\r
+<divrec>29-21</divrec>\r
+<streak>Lost 1</streak>\r
+<post/>\r
+</listing>\r
+</division>\r
+</league>\r
+<league type="American">\r
+<division type="East">\r
+<listing>\r
+<team teamid="028">Boston</team>\r
+<won>69</won>\r
+<lost>46</lost>\r
+<percentage>.600</percentage>\r
+<GB>---</GB>\r
+<home>39-21</home>\r
+<away>30-25</away>\r
+<divrec>28-20</divrec>\r
+<streak>Won 1</streak>\r
+<post/>\r
+</listing>\r
+<listing>\r
+<team teamid="056">Tampa Bay</team>\r
+<won>66</won>\r
+<lost>46</lost>\r
+<percentage>.589</percentage>\r
+<GB>1.5</GB>\r
+<home>37-21</home>\r
+<away>29-25</away>\r
+<divrec>28-26</divrec>\r
+<streak>Lost 1</streak>\r
+<post/>\r
+</listing>\r
+<listing>\r
+<team teamid="027">Baltimore</team>\r
+<won>62</won>\r
+<lost>51</lost>\r
+<percentage>.549</percentage>\r
+<GB>6.0</GB>\r
+<home>33-25</home>\r
+<away>29-26</away>\r
+<divrec>24-23</divrec>\r
+<streak>Won 1</streak>\r
+<post/>\r
+</listing>\r
+<listing>\r
+<team teamid="036">NY Yankees</team>\r
+<won>57</won>\r
+<lost>55</lost>\r
+<percentage>.509</percentage>\r
+<GB>10.5</GB>\r
+<home>29-25</home>\r
+<away>28-30</away>\r
+<divrec>22-21</divrec>\r
+<streak>Lost 3</streak>\r
+<post/>\r
+</listing>\r
+<listing>\r
+<team teamid="040">Toronto</team>\r
+<won>53</won>\r
+<lost>60</lost>\r
+<percentage>.469</percentage>\r
+<GB>15.0</GB>\r
+<home>28-28</home>\r
+<away>25-32</away>\r
+<divrec>18-30</divrec>\r
+<streak>Won 3</streak>\r
+<post/>\r
+</listing>\r
+</division>\r
+<division type="Central">\r
+<listing>\r
+<team teamid="032">Detroit</team>\r
+<won>66</won>\r
+<lost>45</lost>\r
+<percentage>.595</percentage>\r
+<GB>---</GB>\r
+<home>37-19</home>\r
+<away>29-26</away>\r
+<divrec>29-16</divrec>\r
+<streak>Won 10</streak>\r
+<post/>\r
+</listing>\r
+<listing>\r
+<team teamid="031">Cleveland</team>\r
+<won>62</won>\r
+<lost>51</lost>\r
+<percentage>.549</percentage>\r
+<GB>5.0</GB>\r
+<home>37-21</home>\r
+<away>25-30</away>\r
+<divrec>27-22</divrec>\r
+<streak>Lost 2</streak>\r
+<post/>\r
+</listing>\r
+<listing>\r
+<team teamid="033">Kansas City</team>\r
+<won>57</won>\r
+<lost>53</lost>\r
+<percentage>.518</percentage>\r
+<GB>8.5</GB>\r
+<home>28-25</home>\r
+<away>29-28</away>\r
+<divrec>28-20</divrec>\r
+<streak>Lost 1</streak>\r
+<post/>\r
+</listing>\r
+<listing>\r
+<team teamid="035">Minnesota</team>\r
+<won>49</won>\r
+<lost>61</lost>\r
+<percentage>.445</percentage>\r
+<GB>16.5</GB>\r
+<home>26-27</home>\r
+<away>23-34</away>\r
+<divrec>19-26</divrec>\r
+<streak>Won 1</streak>\r
+<post/>\r
+</listing>\r
+<listing>\r
+<team teamid="030">Chicago WSox</team>\r
+<won>42</won>\r
+<lost>69</lost>\r
+<percentage>.378</percentage>\r
+<GB>24.0</GB>\r
+<home>24-28</home>\r
+<away>18-41</away>\r
+<divrec>12-31</divrec>\r
+<streak>Won 2</streak>\r
+<post/>\r
+</listing>\r
+</division>\r
+<division type="West">\r
+<listing>\r
+<team teamid="037">Oakland</team>\r
+<won>64</won>\r
+<lost>48</lost>\r
+<percentage>.571</percentage>\r
+<GB>---</GB>\r
+<home>35-20</home>\r
+<away>29-28</away>\r
+<divrec>30-21</divrec>\r
+<streak>Lost 2</streak>\r
+<post/>\r
+</listing>\r
+<listing>\r
+<team teamid="039">Texas</team>\r
+<won>64</won>\r
+<lost>50</lost>\r
+<percentage>.561</percentage>\r
+<GB>1.0</GB>\r
+<home>33-24</home>\r
+<away>31-26</away>\r
+<divrec>32-14</divrec>\r
+<streak>Won 3</streak>\r
+<post/>\r
+</listing>\r
+<listing>\r
+<team teamid="038">Seattle</team>\r
+<won>52</won>\r
+<lost>61</lost>\r
+<percentage>.460</percentage>\r
+<GB>12.5</GB>\r
+<home>29-30</home>\r
+<away>23-31</away>\r
+<divrec>27-24</divrec>\r
+<streak>Lost 2</streak>\r
+<post/>\r
+</listing>\r
+<listing>\r
+<team teamid="029">LA Angels</team>\r
+<won>51</won>\r
+<lost>61</lost>\r
+<percentage>.455</percentage>\r
+<GB>13.0</GB>\r
+<home>30-31</home>\r
+<away>21-30</away>\r
+<divrec>18-32</divrec>\r
+<streak>Lost 3</streak>\r
+<post/>\r
+</listing>\r
+<listing>\r
+<team teamid="004">Houston</team>\r
+<won>37</won>\r
+<lost>75</lost>\r
+<percentage>.330</percentage>\r
+<GB>27.0</GB>\r
+<home>19-38</home>\r
+<away>18-37</away>\r
+<divrec>15-31</divrec>\r
+<streak>Lost 1</streak>\r
+<post/>\r
+</listing>\r
+</division>\r
+</league>\r
+<time_stamp> August 7, 2013, at 08:49 AM ET </time_stamp>\r
+</message>\r
index d7fa6476c6c9451d4a4af4c7a2a4000da1f6f1a5..06795a95a3e350fdac55b7f7f870694d86c376de 100644 (file)
@@ -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 (file)
index 0000000..ae49a7e
--- /dev/null
@@ -0,0 +1,25 @@
+<!ELEMENT XML_File_ID (#PCDATA)>
+<!ELEMENT heading (#PCDATA)>
+<!ELEMENT category (#PCDATA)>
+<!ELEMENT sport (#PCDATA)>
+<!ELEMENT Title (#PCDATA)>
+<!ELEMENT Complete (#PCDATA)>
+<!ELEMENT team (#PCDATA)>
+<!ELEMENT won (#PCDATA)>
+<!ELEMENT lost (#PCDATA)>
+<!ELEMENT percentage (#PCDATA)>
+<!ELEMENT GB (#PCDATA)>
+<!ELEMENT home (#PCDATA)>
+<!ELEMENT away (#PCDATA)>
+<!ELEMENT divrec (#PCDATA)>
+<!ELEMENT streak (#PCDATA)>
+<!ELEMENT post EMPTY>
+<!ELEMENT listing ( ( team, won, lost, percentage, GB, home, away, divrec, streak, post ) )>
+<!ELEMENT division ( listing* )>
+<!ELEMENT league ( division* )>
+<!ELEMENT time_stamp (#PCDATA)>
+<!ELEMENT message ( ( XML_File_ID, heading, category, sport, Title, Complete, league*, time_stamp ) )>
+
+<!ATTLIST team teamid CDATA #REQUIRED>
+<!ATTLIST division type CDATA #REQUIRED>
+<!ATTLIST league type CDATA #REQUIRED>
diff --git a/test/xml/sportinfo/mlbstandxml.xml b/test/xml/sportinfo/mlbstandxml.xml
new file mode 100644 (file)
index 0000000..fc3dfa9
--- /dev/null
@@ -0,0 +1,387 @@
+<?xml version="1.0" encoding="UTF-8" standalone="no"?>\r
+<!DOCTYPE message PUBLIC "-//TSN//DTD Standings 1.0/EN" "mlbstandxml.dtd">\r
+<message>\r
+<XML_File_ID>18830444</XML_File_ID>\r
+<heading>AAL!MLB-STANDINGS</heading>\r
+<category>Standings</category>\r
+<sport>MLB</sport>\r
+<Title>2013 MLB Standings</Title>\r
+<Complete>(Complete through Wednesday, August 7th)</Complete>\r
+<league type="National">\r
+<division type="East">\r
+<listing>\r
+<team teamid="001">Atlanta</team>\r
+<won>69</won>\r
+<lost>45</lost>\r
+<percentage>.605</percentage>\r
+<GB>---</GB>\r
+<home>38-15</home>\r
+<away>31-30</away>\r
+<divrec>28-16</divrec>\r
+<streak>Won 12</streak>\r
+<post/>\r
+</listing>\r
+<listing>\r
+<team teamid="006">Washington</team>\r
+<won>54</won>\r
+<lost>59</lost>\r
+<percentage>.478</percentage>\r
+<GB>14.5</GB>\r
+<home>31-27</home>\r
+<away>23-32</away>\r
+<divrec>20-23</divrec>\r
+<streak>Lost 3</streak>\r
+<post/>\r
+</listing>\r
+<listing>\r
+<team teamid="008">Philadelphia</team>\r
+<won>51</won>\r
+<lost>61</lost>\r
+<percentage>.455</percentage>\r
+<GB>17.0</GB>\r
+<home>28-26</home>\r
+<away>23-35</away>\r
+<divrec>25-19</divrec>\r
+<streak>Won 1</streak>\r
+<post/>\r
+</listing>\r
+<listing>\r
+<team teamid="007">NY Mets</team>\r
+<won>50</won>\r
+<lost>60</lost>\r
+<percentage>.455</percentage>\r
+<GB>17.0</GB>\r
+<home>23-32</home>\r
+<away>27-28</away>\r
+<divrec>22-31</divrec>\r
+<streak>Won 1</streak>\r
+<post/>\r
+</listing>\r
+<listing>\r
+<team teamid="014">Miami</team>\r
+<won>43</won>\r
+<lost>68</lost>\r
+<percentage>.387</percentage>\r
+<GB>24.5</GB>\r
+<home>26-32</home>\r
+<away>17-36</away>\r
+<divrec>20-26</divrec>\r
+<streak>Lost 3</streak>\r
+<post/>\r
+</listing>\r
+</division>\r
+<division type="Central">\r
+<listing>\r
+<team teamid="009">Pittsburgh</team>\r
+<won>68</won>\r
+<lost>44</lost>\r
+<percentage>.607</percentage>\r
+<GB>---</GB>\r
+<home>39-20</home>\r
+<away>29-24</away>\r
+<divrec>30-18</divrec>\r
+<streak>Won 3</streak>\r
+<post/>\r
+</listing>\r
+<listing>\r
+<team teamid="012">St. Louis</team>\r
+<won>66</won>\r
+<lost>46</lost>\r
+<percentage>.589</percentage>\r
+<GB>2.0</GB>\r
+<home>33-18</home>\r
+<away>33-28</away>\r
+<divrec>25-17</divrec>\r
+<streak>Won 1</streak>\r
+<post/>\r
+</listing>\r
+<listing>\r
+<team teamid="003">Cincinnati</team>\r
+<won>62</won>\r
+<lost>51</lost>\r
+<percentage>.549</percentage>\r
+<GB>6.5</GB>\r
+<home>34-19</home>\r
+<away>28-32</away>\r
+<divrec>26-21</divrec>\r
+<streak>Won 1</streak>\r
+<post/>\r
+</listing>\r
+<listing>\r
+<team teamid="002">Chicago Cubs</team>\r
+<won>49</won>\r
+<lost>63</lost>\r
+<percentage>.438</percentage>\r
+<GB>19.0</GB>\r
+<home>23-33</home>\r
+<away>26-30</away>\r
+<divrec>16-31</divrec>\r
+<streak>Lost 5</streak>\r
+<post/>\r
+</listing>\r
+<listing>\r
+<team teamid="034">Milwaukee</team>\r
+<won>48</won>\r
+<lost>65</lost>\r
+<percentage>.425</percentage>\r
+<GB>20.5</GB>\r
+<home>27-31</home>\r
+<away>21-34</away>\r
+<divrec>17-27</divrec>\r
+<streak>Won 1</streak>\r
+<post/>\r
+</listing>\r
+</division>\r
+<division type="West">\r
+<listing>\r
+<team teamid="005">Los Angeles</team>\r
+<won>62</won>\r
+<lost>50</lost>\r
+<percentage>.554</percentage>\r
+<GB>---</GB>\r
+<home>31-25</home>\r
+<away>31-25</away>\r
+<divrec>23-27</divrec>\r
+<streak>Lost 1</streak>\r
+<post/>\r
+</listing>\r
+<listing>\r
+<team teamid="055">Arizona</team>\r
+<won>57</won>\r
+<lost>55</lost>\r
+<percentage>.509</percentage>\r
+<GB>5.0</GB>\r
+<home>31-24</home>\r
+<away>26-31</away>\r
+<divrec>23-26</divrec>\r
+<streak>Won 1</streak>\r
+<post/>\r
+</listing>\r
+<listing>\r
+<team teamid="010">San Diego</team>\r
+<won>52</won>\r
+<lost>61</lost>\r
+<percentage>.460</percentage>\r
+<GB>10.5</GB>\r
+<home>31-26</home>\r
+<away>21-35</away>\r
+<divrec>23-28</divrec>\r
+<streak>Lost 1</streak>\r
+<post/>\r
+</listing>\r
+<listing>\r
+<team teamid="013">Colorado</team>\r
+<won>52</won>\r
+<lost>62</lost>\r
+<percentage>.456</percentage>\r
+<GB>11.0</GB>\r
+<home>31-26</home>\r
+<away>21-36</away>\r
+<divrec>28-24</divrec>\r
+<streak>Lost 3</streak>\r
+<post/>\r
+</listing>\r
+<listing>\r
+<team teamid="011">San Francisco</team>\r
+<won>50</won>\r
+<lost>62</lost>\r
+<percentage>.446</percentage>\r
+<GB>12.0</GB>\r
+<home>29-28</home>\r
+<away>21-34</away>\r
+<divrec>29-21</divrec>\r
+<streak>Lost 1</streak>\r
+<post/>\r
+</listing>\r
+</division>\r
+</league>\r
+<league type="American">\r
+<division type="East">\r
+<listing>\r
+<team teamid="028">Boston</team>\r
+<won>69</won>\r
+<lost>46</lost>\r
+<percentage>.600</percentage>\r
+<GB>---</GB>\r
+<home>39-21</home>\r
+<away>30-25</away>\r
+<divrec>28-20</divrec>\r
+<streak>Won 1</streak>\r
+<post/>\r
+</listing>\r
+<listing>\r
+<team teamid="056">Tampa Bay</team>\r
+<won>66</won>\r
+<lost>46</lost>\r
+<percentage>.589</percentage>\r
+<GB>1.5</GB>\r
+<home>37-21</home>\r
+<away>29-25</away>\r
+<divrec>28-26</divrec>\r
+<streak>Lost 1</streak>\r
+<post/>\r
+</listing>\r
+<listing>\r
+<team teamid="027">Baltimore</team>\r
+<won>62</won>\r
+<lost>51</lost>\r
+<percentage>.549</percentage>\r
+<GB>6.0</GB>\r
+<home>33-25</home>\r
+<away>29-26</away>\r
+<divrec>24-23</divrec>\r
+<streak>Won 1</streak>\r
+<post/>\r
+</listing>\r
+<listing>\r
+<team teamid="036">NY Yankees</team>\r
+<won>57</won>\r
+<lost>55</lost>\r
+<percentage>.509</percentage>\r
+<GB>10.5</GB>\r
+<home>29-25</home>\r
+<away>28-30</away>\r
+<divrec>22-21</divrec>\r
+<streak>Lost 3</streak>\r
+<post/>\r
+</listing>\r
+<listing>\r
+<team teamid="040">Toronto</team>\r
+<won>53</won>\r
+<lost>60</lost>\r
+<percentage>.469</percentage>\r
+<GB>15.0</GB>\r
+<home>28-28</home>\r
+<away>25-32</away>\r
+<divrec>18-30</divrec>\r
+<streak>Won 3</streak>\r
+<post/>\r
+</listing>\r
+</division>\r
+<division type="Central">\r
+<listing>\r
+<team teamid="032">Detroit</team>\r
+<won>66</won>\r
+<lost>45</lost>\r
+<percentage>.595</percentage>\r
+<GB>---</GB>\r
+<home>37-19</home>\r
+<away>29-26</away>\r
+<divrec>29-16</divrec>\r
+<streak>Won 10</streak>\r
+<post/>\r
+</listing>\r
+<listing>\r
+<team teamid="031">Cleveland</team>\r
+<won>62</won>\r
+<lost>51</lost>\r
+<percentage>.549</percentage>\r
+<GB>5.0</GB>\r
+<home>37-21</home>\r
+<away>25-30</away>\r
+<divrec>27-22</divrec>\r
+<streak>Lost 2</streak>\r
+<post/>\r
+</listing>\r
+<listing>\r
+<team teamid="033">Kansas City</team>\r
+<won>57</won>\r
+<lost>53</lost>\r
+<percentage>.518</percentage>\r
+<GB>8.5</GB>\r
+<home>28-25</home>\r
+<away>29-28</away>\r
+<divrec>28-20</divrec>\r
+<streak>Lost 1</streak>\r
+<post/>\r
+</listing>\r
+<listing>\r
+<team teamid="035">Minnesota</team>\r
+<won>49</won>\r
+<lost>61</lost>\r
+<percentage>.445</percentage>\r
+<GB>16.5</GB>\r
+<home>26-27</home>\r
+<away>23-34</away>\r
+<divrec>19-26</divrec>\r
+<streak>Won 1</streak>\r
+<post/>\r
+</listing>\r
+<listing>\r
+<team teamid="030">Chicago WSox</team>\r
+<won>42</won>\r
+<lost>69</lost>\r
+<percentage>.378</percentage>\r
+<GB>24.0</GB>\r
+<home>24-28</home>\r
+<away>18-41</away>\r
+<divrec>12-31</divrec>\r
+<streak>Won 2</streak>\r
+<post/>\r
+</listing>\r
+</division>\r
+<division type="West">\r
+<listing>\r
+<team teamid="037">Oakland</team>\r
+<won>64</won>\r
+<lost>48</lost>\r
+<percentage>.571</percentage>\r
+<GB>---</GB>\r
+<home>35-20</home>\r
+<away>29-28</away>\r
+<divrec>30-21</divrec>\r
+<streak>Lost 2</streak>\r
+<post/>\r
+</listing>\r
+<listing>\r
+<team teamid="039">Texas</team>\r
+<won>64</won>\r
+<lost>50</lost>\r
+<percentage>.561</percentage>\r
+<GB>1.0</GB>\r
+<home>33-24</home>\r
+<away>31-26</away>\r
+<divrec>32-14</divrec>\r
+<streak>Won 3</streak>\r
+<post/>\r
+</listing>\r
+<listing>\r
+<team teamid="038">Seattle</team>\r
+<won>52</won>\r
+<lost>61</lost>\r
+<percentage>.460</percentage>\r
+<GB>12.5</GB>\r
+<home>29-30</home>\r
+<away>23-31</away>\r
+<divrec>27-24</divrec>\r
+<streak>Lost 2</streak>\r
+<post/>\r
+</listing>\r
+<listing>\r
+<team teamid="029">LA Angels</team>\r
+<won>51</won>\r
+<lost>61</lost>\r
+<percentage>.455</percentage>\r
+<GB>13.0</GB>\r
+<home>30-31</home>\r
+<away>21-30</away>\r
+<divrec>18-32</divrec>\r
+<streak>Lost 3</streak>\r
+<post/>\r
+</listing>\r
+<listing>\r
+<team teamid="004">Houston</team>\r
+<won>37</won>\r
+<lost>75</lost>\r
+<percentage>.330</percentage>\r
+<GB>27.0</GB>\r
+<home>19-38</home>\r
+<away>18-37</away>\r
+<divrec>15-31</divrec>\r
+<streak>Lost 1</streak>\r
+<post/>\r
+</listing>\r
+</division>\r
+</league>\r
+<time_stamp> August 7, 2013, at 08:49 AM ET </time_stamp>\r
+</message>\r