]> gitweb.michael.orlitzky.com - dead/htsn-import.git/commitdiff
Add the earlylineXML DTD and the sample used to generate it.
authorMichael Orlitzky <michael@orlitzky.com>
Tue, 22 Jul 2014 01:07:09 +0000 (21:07 -0400)
committerMichael Orlitzky <michael@orlitzky.com>
Tue, 22 Jul 2014 01:07:09 +0000 (21:07 -0400)
schema/earlylineXML.dtd [new file with mode: 0644]
schemagen/earlylineXML/21166989.xml [new file with mode: 0644]

diff --git a/schema/earlylineXML.dtd b/schema/earlylineXML.dtd
new file mode 100644 (file)
index 0000000..d5b3b6a
--- /dev/null
@@ -0,0 +1,20 @@
+<!ELEMENT XML_File_ID (#PCDATA)>
+<!ELEMENT heading (#PCDATA)>
+<!ELEMENT category (#PCDATA)>
+<!ELEMENT sport (#PCDATA)>
+<!ELEMENT title (#PCDATA)>
+<!ELEMENT note (#PCDATA)>
+<!ELEMENT time (#PCDATA)>
+<!ELEMENT teamA (#PCDATA)>
+<!ELEMENT teamH (#PCDATA)>
+<!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 line CDATA #REQUIRED>
+<!ATTLIST teamH rotation CDATA #REQUIRED>
+<!ATTLIST teamH line CDATA #REQUIRED>
+<!ATTLIST date value CDATA #REQUIRED>
diff --git a/schemagen/earlylineXML/21166989.xml b/schemagen/earlylineXML/21166989.xml
new file mode 100644 (file)
index 0000000..a061b73
--- /dev/null
@@ -0,0 +1 @@
+<?xml version="1.0" standalone="no" ?>\r<!DOCTYPE message PUBLIC "-//TSN//DTD Odds 1.0/EN" "earlylineXML.dtd">\r<message>\r<XML_File_ID>21166989</XML_File_ID>\r<heading>ACO;NBA-EARLY-LINE</heading>\r<category>Odds</category>\r<sport>NBA</sport>\r<title>National Basketball Association Overnight Line</title>\r<date value="SUNDAY, MAY 25TH (05/25/2014)">\r<note>Western Conference Finals - San Antonio leads 2-0</note>\r<game>\r<time>8:30</time>\r<teamA rotation="511" line="">San Antonio</teamA>\r<teamH rotation="512" line="-2">Oklahoma City</teamH>\r<over_under>208</over_under>\r</game>\r</date>\r<date value="MONDAY, MAY 26TH (05/26/2014)">\r<note>Eastern Conference Finals - Miami leads 2-1</note>\r<game>\r<time>8:30</time>\r<teamA rotation="513" line="">Indiana</teamA>\r<teamH rotation="514" line="off">Miami</teamH>\r<over_under>off</over_under>\r</game>\r</date>\r<time_stamp> May 25, 2014, at 09:06 AM ET </time_stamp>\r</message>\r
\ No newline at end of file