]> gitweb.michael.orlitzky.com - dead/htsn-import.git/commitdiff
Replace the auto-generated Odds_XML.dtd used in tests with the hand-crafted one.
authorMichael Orlitzky <michael@orlitzky.com>
Fri, 10 Jan 2014 21:47:31 +0000 (16:47 -0500)
committerMichael Orlitzky <michael@orlitzky.com>
Fri, 10 Jan 2014 21:47:31 +0000 (16:47 -0500)
test/xml/Odds_XML.dtd

index 7355ababd0d567da02c22fc1a243147d3753f7ca..f5eeb67b4f4f92eeb0e0fdbb48c1a938f495d58a 100644 (file)
 <!ELEMENT Over_Under ( Casino* )>
 <!ELEMENT Game ( ( GameID, Game_Date, Game_Time, AwayTeam, HomeTeam, Over_Under ) )>
 <!ELEMENT time_stamp (#PCDATA)>
-<!ELEMENT message ( ( XML_File_ID | heading | category | sport | Title | Line_Time | Notes | Game | time_stamp )+ )>
+
+<!--
+The generated message schema is too general; it allows any number
+of anything in any order. We know that the first couple of elements
+are required and appear in a fixed order.
+-->
+<!--
+Warning: the TSN DTD suggests the existence of an optional League_Name
+element that would appear next to the Notes*.
+-->
+<!ELEMENT message ( XML_File_ID, heading, category, sport, Title, Line_Time, ( Notes*, Game+)*, time_stamp )>
 
 <!ATTLIST Casino ClientID CDATA #REQUIRED>
 <!ATTLIST Casino Name CDATA #REQUIRED>