]> gitweb.michael.orlitzky.com - dead/htsn-import.git/commitdiff
Add MLB_earlylineXML.dtd and the sample XML used to generate it.
authorMichael Orlitzky <michael@orlitzky.com>
Wed, 23 Jul 2014 19:36:40 +0000 (15:36 -0400)
committerMichael Orlitzky <michael@orlitzky.com>
Wed, 23 Jul 2014 19:36:40 +0000 (15:36 -0400)
schema/MLB_earlylineXML.dtd [new file with mode: 0644]
schemagen/MLB_earlylineXML/21160887.xml [new file with mode: 0644]

diff --git a/schema/MLB_earlylineXML.dtd b/schema/MLB_earlylineXML.dtd
new file mode 100644 (file)
index 0000000..e3c242f
--- /dev/null
@@ -0,0 +1,22 @@
+<!ELEMENT XML_File_ID (#PCDATA)>
+<!ELEMENT heading (#PCDATA)>
+<!ELEMENT category (#PCDATA)>
+<!ELEMENT sport (#PCDATA)>
+<!ELEMENT title (#PCDATA)>
+<!ELEMENT note (#PCDATA)>
+<!ELEMENT time (#PCDATA)>
+<!ELEMENT pitcher (#PCDATA)>
+<!ELEMENT line (#PCDATA)>
+<!ELEMENT teamA ( ( pitcher, line ) )>
+<!ELEMENT teamH ( ( pitcher, line ) )>
+<!ELEMENT over_under (#PCDATA)>
+<!ELEMENT game ( ( time, teamA, teamH, over_under ) )>
+<!ELEMENT date ( ( note | game )+ )>
+<!ELEMENT time_stamp (#PCDATA)>
+<!ELEMENT message ( ( XML_File_ID, heading, category, sport, title, date, time_stamp ) )>
+
+<!ATTLIST teamA rotation CDATA #REQUIRED>
+<!ATTLIST teamA name CDATA #REQUIRED>
+<!ATTLIST teamH rotation CDATA #REQUIRED>
+<!ATTLIST teamH name CDATA #REQUIRED>
+<!ATTLIST date value CDATA #REQUIRED>
diff --git a/schemagen/MLB_earlylineXML/21160887.xml b/schemagen/MLB_earlylineXML/21160887.xml
new file mode 100644 (file)
index 0000000..356cd37
--- /dev/null
@@ -0,0 +1 @@
+<?xml version="1.0" standalone="no" ?>\r<!DOCTYPE message PUBLIC "-//TSN//DTD Odds 1.0/EN" "MLB_earlylineXML.dtd">\r<message>\r<XML_File_ID>21160887</XML_File_ID>\r<heading>AAO;MLB-EARLY-LINE</heading>\r<category>Odds</category>\r<sport>MLB</sport>\r<title>Major League Baseball Overnight Line</title>\r<date value="SATURDAY, MAY 24TH (05/24/2014)">\r<note>National League</note>\r<game>\r<time>3:05</time>\r<teamA rotation="901" name="LOS">\r<pitcher>D.Haren</pitcher>\r<line>-130</line>\r</teamA>\r<teamH rotation="902" name="PHI">\r<pitcher>D.Buchanan</pitcher>\r<line></line>\r</teamH>\r<over_under>8.5o</over_under>\r</game>\r<game>\r<time>4:10</time>\r<teamA rotation="903" name="COL">\r<pitcher>J.Nicasio</pitcher>\r<line></line>\r</teamA>\r<teamH rotation="904" name="ATL">\r<pitcher>M.Minor</pitcher>\r<line>-130</line>\r</teamH>\r<over_under>7.5p</over_under>\r</game>\r<game>\r<time>4:10</time>\r<teamA rotation="905" name="MIL">\r<pitcher>W.Peralta</pitcher>\r<line></line>\r</teamA>\r<teamH rotation="906" name="MIA">\r<pitcher>J.Turner</pitcher>\r<line>-105</line>\r</teamH>\r<over_under>8p</over_under>\r</game>\r<game>\r<time>4:10</time>\r<teamA rotation="907" name="ARI">\r<pitcher>J.Collmenter</pitcher>\r<line></line>\r</teamA>\r<teamH rotation="908" name="NYM">\r<pitcher>Z.Wheeler</pitcher>\r<line>-120</line>\r</teamH>\r<over_under>7.5p</over_under>\r</game>\r<game>\r<time>7:15</time>\r<teamA rotation="909" name="STL">\r<pitcher>J.Garcia</pitcher>\r<line></line>\r</teamA>\r<teamH rotation="910" name="CIN">\r<pitcher>T.Cingrani</pitcher>\r<line>-105</line>\r</teamH>\r<over_under>7o</over_under>\r</game>\r<game>\r<time>7:15</time>\r<teamA rotation="911" name="WAS">\r<pitcher>S.Strasburg</pitcher>\r<line></line>\r</teamA>\r<teamH rotation="912" name="PIT">\r<pitcher>G.Cole</pitcher>\r<line>-105</line>\r</teamH>\r<over_under>6.5o</over_under>\r</game>\r<game>\r<time>10:10</time>\r<teamA rotation="913" name="CHC">\r<pitcher>T.Wood</pitcher>\r<line></line>\r</teamA>\r<teamH rotation="914" name="SDP">\r<pitcher>B.Buckner</pitcher>\r<line>off</line>\r</teamH>\r<over_under>off</over_under>\r</game>\r<note>American League</note>\r<game>\r<time>1:07</time>\r<teamA rotation="915" name="OAK">\r<pitcher>J.Chavez</pitcher>\r<line>-120</line>\r</teamA>\r<teamH rotation="916" name="TOR">\r<pitcher>R.Dickey</pitcher>\r<line></line>\r</teamH>\r<over_under>9p</over_under>\r</game>\r<game>\r<time>2:10</time>\r<teamA rotation="917" name="NYY">\r<pitcher>V.Nuno</pitcher>\r<line></line>\r</teamA>\r<teamH rotation="918" name="CWS">\r<pitcher>J.Danks</pitcher>\r<line>-105</line>\r</teamH>\r<over_under>9.5p</over_under>\r</game>\r<game>\r<time>4:08</time>\r<teamA rotation="919" name="TEX">\r<pitcher>N.Martinez</pitcher>\r<line></line>\r</teamA>\r<teamH rotation="920" name="DET">\r<pitcher>R.Porcello</pitcher>\r<line>-170</line>\r</teamH>\r<over_under>9u</over_under>\r</game>\r<game>\r<time>4:10</time>\r<teamA rotation="921" name="BOS">\r<pitcher>J.Peavy</pitcher>\r<line></line>\r</teamA>\r<teamH rotation="922" name="TAM">\r<pitcher>D.Price</pitcher>\r<line>-135</line>\r</teamH>\r<over_under>7o</over_under>\r</game>\r<note>Time change</note>\r<game>\r<time>12:35</time>\r<teamA rotation="923" name="CLE">\r<pitcher>C.Kluber</pitcher>\r<line></line>\r</teamA>\r<teamH rotation="924" name="BAL">\r<pitcher>U.Jimenez</pitcher>\r<line>-110</line>\r</teamH>\r<over_under>8.5u</over_under>\r</game>\r<game>\r<time>7:15</time>\r<teamA rotation="925" name="KAN">\r<pitcher>J.Shields</pitcher>\r<line>-110</line>\r</teamA>\r<teamH rotation="926" name="ANA">\r<pitcher>M.Shoemaker</pitcher>\r<line></line>\r</teamH>\r<over_under>7.5u</over_under>\r</game>\r<game>\r<time>10:10</time>\r<teamA rotation="927" name="HOU">\r<pitcher>B.Oberholtzer</pitcher>\r<line></line>\r</teamA>\r<teamH rotation="928" name="SEA">\r<pitcher>B.Maurer</pitcher>\r<line>off</line>\r</teamH>\r<over_under>off</over_under>\r</game>\r<note>Inter League</note>\r<game>\r<time>10:05</time>\r<teamA rotation="929" name="MIN">\r<pitcher>S.Deduno</pitcher>\r<line></line>\r</teamA>\r<teamH rotation="930" name="SFG">\r<pitcher>R.Vogelsong</pitcher>\r<line>off</line>\r</teamH>\r<over_under>off</over_under>\r</game>\r</date>\r<time_stamp> May 24, 2014, at 09:23 AM ET </time_stamp>\r</message>\r
\ No newline at end of file