]> gitweb.michael.orlitzky.com - dead/htsn-import.git/commitdiff
Add a new AutoRacingResultsXML sample and test case.
authorMichael Orlitzky <michael@orlitzky.com>
Wed, 24 Sep 2014 01:56:33 +0000 (21:56 -0400)
committerMichael Orlitzky <michael@orlitzky.com>
Wed, 24 Sep 2014 01:56:33 +0000 (21:56 -0400)
Replace the AutoRacingResultsXML DTDs with a newly-generated one.

schema/AutoRacingResultsXML.dtd
schemagen/AutoRacingResultsXML/21777587.xml [new file with mode: 0644]
test/xml/AutoRacingResultsXML-no-most-laps-leading.xml [new file with mode: 0644]
test/xml/AutoRacingResultsXML.dtd

index 3eba627a3149f03747159242a478b8fd9c332c6e..5fc760fc03ca71f8258554de90f38d1c5462b324 100644 (file)
@@ -25,7 +25,7 @@
 <!ELEMENT Laps (#PCDATA)>
 <!ELEMENT NumberOfLaps (#PCDATA)>
 <!ELEMENT Most_Laps_Leading ( DriverID, Driver, NumberOfLaps )>
-<!ELEMENT Race_Information ( TrackLength, Laps, AverageSpeedMPH?, AverageSpeedKPH?, AverageSpeed?, TimeOfRace?, MarginOfVictory?, Cautions?, LeadChanges?, LapLeaders?, Most_Laps_Leading )>
+<!ELEMENT Race_Information ( TrackLength, Laps, AverageSpeedMPH?, AverageSpeedKPH?, AverageSpeed?, TimeOfRace?, MarginOfVictory?, Cautions?, LeadChanges?, LapLeaders?, Most_Laps_Leading? )>
 <!ELEMENT time_stamp (#PCDATA)>
 <!ELEMENT message ( ( XML_File_ID, heading, category, sport, RaceID, RaceDate, Title, Track_Location, Laps_Remaining, Checkered_Flag, Listing*, Race_Information, time_stamp ) )>
 <!ELEMENT AverageSpeedMPH (#PCDATA)>
diff --git a/schemagen/AutoRacingResultsXML/21777587.xml b/schemagen/AutoRacingResultsXML/21777587.xml
new file mode 100644 (file)
index 0000000..0c338ab
--- /dev/null
@@ -0,0 +1 @@
+<?xml version="1.0" standalone="no" ?>\r<!DOCTYPE message PUBLIC "-//TSN//DTD Leader 1.0/EN" "AutoRacingResultsXML.dtd">\r<message>\r<XML_File_ID>21777587</XML_File_ID>\r<heading>ASX%BUSCH-FINAL-RESULTS</heading>\r<category>Statistics</category>\r<sport>NASCAR-B</sport>\r<RaceID>1731</RaceID>\r<RaceDate>9/13/2014 3:30:00 PM</RaceDate>\r<Title>NASCAR - Nationwide - Jimmy John's Freaky Fast 300 - Final Results</Title>\r<Track_Location>Chicagoland Speedway - Joliet, IL</Track_Location>\r<Laps_Remaining>0</Laps_Remaining>\r<Checkered_Flag>False</Checkered_Flag>\r<Race_Information>\r<TrackLength KPH="2.414">1.5</TrackLength>\r<Laps>200</Laps>\r</Race_Information>\r<time_stamp> September 13, 2014, at 03:36 PM ET </time_stamp>\r</message>\r
\ No newline at end of file
diff --git a/test/xml/AutoRacingResultsXML-no-most-laps-leading.xml b/test/xml/AutoRacingResultsXML-no-most-laps-leading.xml
new file mode 100644 (file)
index 0000000..0c338ab
--- /dev/null
@@ -0,0 +1 @@
+<?xml version="1.0" standalone="no" ?>\r<!DOCTYPE message PUBLIC "-//TSN//DTD Leader 1.0/EN" "AutoRacingResultsXML.dtd">\r<message>\r<XML_File_ID>21777587</XML_File_ID>\r<heading>ASX%BUSCH-FINAL-RESULTS</heading>\r<category>Statistics</category>\r<sport>NASCAR-B</sport>\r<RaceID>1731</RaceID>\r<RaceDate>9/13/2014 3:30:00 PM</RaceDate>\r<Title>NASCAR - Nationwide - Jimmy John's Freaky Fast 300 - Final Results</Title>\r<Track_Location>Chicagoland Speedway - Joliet, IL</Track_Location>\r<Laps_Remaining>0</Laps_Remaining>\r<Checkered_Flag>False</Checkered_Flag>\r<Race_Information>\r<TrackLength KPH="2.414">1.5</TrackLength>\r<Laps>200</Laps>\r</Race_Information>\r<time_stamp> September 13, 2014, at 03:36 PM ET </time_stamp>\r</message>\r
\ No newline at end of file
index 3eba627a3149f03747159242a478b8fd9c332c6e..5fc760fc03ca71f8258554de90f38d1c5462b324 100644 (file)
@@ -25,7 +25,7 @@
 <!ELEMENT Laps (#PCDATA)>
 <!ELEMENT NumberOfLaps (#PCDATA)>
 <!ELEMENT Most_Laps_Leading ( DriverID, Driver, NumberOfLaps )>
-<!ELEMENT Race_Information ( TrackLength, Laps, AverageSpeedMPH?, AverageSpeedKPH?, AverageSpeed?, TimeOfRace?, MarginOfVictory?, Cautions?, LeadChanges?, LapLeaders?, Most_Laps_Leading )>
+<!ELEMENT Race_Information ( TrackLength, Laps, AverageSpeedMPH?, AverageSpeedKPH?, AverageSpeed?, TimeOfRace?, MarginOfVictory?, Cautions?, LeadChanges?, LapLeaders?, Most_Laps_Leading? )>
 <!ELEMENT time_stamp (#PCDATA)>
 <!ELEMENT message ( ( XML_File_ID, heading, category, sport, RaceID, RaceDate, Title, Track_Location, Laps_Remaining, Checkered_Flag, Listing*, Race_Information, time_stamp ) )>
 <!ELEMENT AverageSpeedMPH (#PCDATA)>