]> gitweb.michael.orlitzky.com - dead/htsn-import.git/blobdiff - test/xml/weatherxml-empty-weather.xml
Make <weather> and <Description> elements optional in TSN.XML.Weather.
[dead/htsn-import.git] / test / xml / weatherxml-empty-weather.xml
diff --git a/test/xml/weatherxml-empty-weather.xml b/test/xml/weatherxml-empty-weather.xml
new file mode 100644 (file)
index 0000000..b42bb0f
--- /dev/null
@@ -0,0 +1 @@
+<?xml version="1.0" standalone="no" ?>\r<!DOCTYPE message PUBLIC "-//TSN//DTD Weather 1.0/EN" "weatherxml.dtd">\r<message>\r<XML_File_ID>21812233</XML_File_ID>\r<heading>AAW%BBWEATHER</heading>\r<category>Weather</category>\r<sport>MLB</sport>\r<title>Major League Baseball Weather from The Sports Network</title>\r<forecast gamedate="Thursday, September 18th">\r<league name="National League">\r<listing>\r<teams>Washington Nationals at Miami Marlins, 7:10 p.m.</teams>\r<weather>Partly cloudy with a 60-percent chance of rain. Winds blowing in from right  field at 5-10 m.p.h.  Game-time temperature: Around 80.</weather>\r</listing>\r<listing>\r<teams>Los Angeles Dodgers at Chicago Cubs, 8:05 p.m.</teams>\r<weather>Clear. Winds blowing in from center field at 5-10 m.p.h.  Game-time temperature: Around 60.</weather>\r</listing>\r<listing>\r<teams>Milwaukee Brewers at St. Louis Cardinals, 8:15 p.m.</teams>\r<weather>Clear. Winds blowing in from center field at 5-10 m.p.h.  Game-time temperature: Around 70.</weather>\r</listing>\r<listing>\r<teams>Arizona Diamondbacks at Colorado Rockies, 8:40 p.m.</teams>\r<weather>Clear. Winds blowing out to left field at 10-15 m.p.h.  Game-time temperature: Around 85.</weather>\r</listing>\r<listing>\r<teams>Philadelphia Phillies at San Diego Padres, 9:10 p.m.</teams>\r<weather>Partly cloudy. Winds blowing in from left field at 10-15 m.p.h.  Game-time temperature: Around 75.</weather>\r</listing>\r</league>\r<league name="Interleague">\r<listing>\r<teams>Boston Red Sox at Pittsburgh Pirates, 7:05 p.m.</teams>\r<weather>Partly cloudy. Winds blowing out to right field at 5-10 m.p.h.  Game-time temperature: Around 65.</weather>\r</listing>\r</league>\r<league name="American League">\r<listing>\r<teams>Texas Rangers at Oakland Athletics, 3:35 p.m.</teams>\r<weather>Cloudy with a 40-percent chance of rain. Winds blowing out to center field at  5-10 m.p.h.  Game-time temperature: Around 70.</weather>\r</listing>\r<listing>\r<teams>Toronto Blue Jays at New York Yankees, 7:05 p.m.</teams>\r<weather>Partly cloudy. Winds blowing out to right field at 5-10 m.p.h.  Game-time temperature: Around 70.</weather>\r</listing>\r<listing>\r<teams>Cleveland Indians at Houston Astros, 8:10 p.m.</teams>\r<weather>Partly cloudy with a 70-percent chance of rain. Winds blowing out to left  field at 5-10 m.p.h.  Game-time temperature: Around 80.</weather>\r</listing>\r<listing>\r<teams>Seattle Mariners at LA Angels of Anaheim, 10:05 p.m.</teams>\r<weather>Clear. Winds blowing out to left field at 5-10 m.p.h.  Game-time temperature: Around 80.</weather>\r</listing>\r</league>\r</forecast>\r<forecast gamedate="Monday, September 22nd">\r<league name="">\r<listing>\r<teams>Cleveland Indians at Kansas City Royals, 6:05 p.m.</teams>\r<weather></weather>\r</listing>\r</league>\r</forecast>\r<Detailed_Weather>\r<DW_Listing SportCode="AA" Sport="MLB">\r<Item>\r<Sportcode>AA</Sportcode>\r<GameID>41428</GameID>\r<Gamedate>9/18/2014 7:10:00 PM</Gamedate>\r<AwayTeam>Washington Nationals</AwayTeam>\r<HomeTeam>Miami Marlins</HomeTeam>\r<WeatherType>2</WeatherType>\r<Description>Partly cloudy with a 60-percent chance of rain. Winds blowing in from right field at 5-10 m.p.h.</Description>\r<TempAdjust>Around</TempAdjust>\r<Temperature>80</Temperature>\r</Item>\r<Item>\r<Sportcode>AA</Sportcode>\r<GameID>41430</GameID>\r<Gamedate>9/18/2014 8:05:00 PM</Gamedate>\r<AwayTeam>Los Angeles Dodgers</AwayTeam>\r<HomeTeam>Chicago Cubs</HomeTeam>\r<WeatherType>10</WeatherType>\r<Description>Clear. Winds blowing in from center field at 5-10 m.p.h.</Description>\r<TempAdjust>Around</TempAdjust>\r<Temperature>60</Temperature>\r</Item>\r<Item>\r<Sportcode>AA</Sportcode>\r<GameID>41431</GameID>\r<Gamedate>9/18/2014 8:15:00 PM</Gamedate>\r<AwayTeam>Milwaukee Brewers</AwayTeam>\r<HomeTeam>St. Louis Cardinals</HomeTeam>\r<WeatherType>10</WeatherType>\r<Description>Clear. Winds blowing in from center field at 5-10 m.p.h.</Description>\r<TempAdjust>Around</TempAdjust>\r<Temperature>70</Temperature>\r</Item>\r<Item>\r<Sportcode>AA</Sportcode>\r<GameID>41433</GameID>\r<Gamedate>9/18/2014 8:40:00 PM</Gamedate>\r<AwayTeam>Arizona Diamondbacks</AwayTeam>\r<HomeTeam>Colorado Rockies</HomeTeam>\r<WeatherType>10</WeatherType>\r<Description>Clear. Winds blowing out to left field at 10-15 m.p.h.</Description>\r<TempAdjust>Around</TempAdjust>\r<Temperature>85</Temperature>\r</Item>\r<Item>\r<Sportcode>AA</Sportcode>\r<GameID>41432</GameID>\r<Gamedate>9/18/2014 9:10:00 PM</Gamedate>\r<AwayTeam>Philadelphia Phillies</AwayTeam>\r<HomeTeam>San Diego Padres</HomeTeam>\r<WeatherType>2</WeatherType>\r<Description>Partly cloudy. Winds blowing in from left field at 10-15 m.p.h.</Description>\r<TempAdjust>Around</TempAdjust>\r<Temperature>75</Temperature>\r</Item>\r<Item>\r<Sportcode>AA</Sportcode>\r<GameID>41429</GameID>\r<Gamedate>9/18/2014 7:05:00 PM</Gamedate>\r<AwayTeam>Boston Red Sox</AwayTeam>\r<HomeTeam>Pittsburgh Pirates</HomeTeam>\r<WeatherType>2</WeatherType>\r<Description>Partly cloudy. Winds blowing out to right field at 5-10 m.p.h.</Description>\r<TempAdjust>Around</TempAdjust>\r<Temperature>65</Temperature>\r</Item>\r<Item>\r<Sportcode>AA</Sportcode>\r<GameID>41426</GameID>\r<Gamedate>9/18/2014 3:35:00 PM</Gamedate>\r<AwayTeam>Texas Rangers</AwayTeam>\r<HomeTeam>Oakland Athletics</HomeTeam>\r<WeatherType>3</WeatherType>\r<Description>Cloudy with a 40-percent chance of rain. Winds blowing out to center field at 5-10 m.p.h.</Description>\r<TempAdjust>Around</TempAdjust>\r<Temperature>70</Temperature>\r</Item>\r<Item>\r<Sportcode>AA</Sportcode>\r<GameID>41424</GameID>\r<Gamedate>9/18/2014 7:05:00 PM</Gamedate>\r<AwayTeam>Toronto Blue Jays</AwayTeam>\r<HomeTeam>New York Yankees</HomeTeam>\r<WeatherType>2</WeatherType>\r<Description>Partly cloudy. Winds blowing out to right field at 5-10 m.p.h.</Description>\r<TempAdjust>Around</TempAdjust>\r<Temperature>70</Temperature>\r</Item>\r<Item>\r<Sportcode>AA</Sportcode>\r<GameID>41425</GameID>\r<Gamedate>9/18/2014 8:10:00 PM</Gamedate>\r<AwayTeam>Cleveland Indians</AwayTeam>\r<HomeTeam>Houston Astros</HomeTeam>\r<WeatherType>2</WeatherType>\r<Description>Partly cloudy with a 70-percent chance of rain. Winds blowing out to left field at 5-10 m.p.h.</Description>\r<TempAdjust>Around</TempAdjust>\r<Temperature>80</Temperature>\r</Item>\r<Item>\r<Sportcode>AA</Sportcode>\r<GameID>41427</GameID>\r<Gamedate>9/18/2014 10:05:00 PM</Gamedate>\r<AwayTeam>Seattle Mariners</AwayTeam>\r<HomeTeam>LA Angels of Anaheim</HomeTeam>\r<WeatherType>10</WeatherType>\r<Description>Clear. Winds blowing out to left field at 5-10 m.p.h.</Description>\r<TempAdjust>Around</TempAdjust>\r<Temperature>80</Temperature>\r</Item>\r<Item>\r<Sportcode>AA</Sportcode>\r<GameID>41180</GameID>\r<Gamedate>9/22/2014 6:05:00 PM</Gamedate>\r<AwayTeam>Cleveland Indians</AwayTeam>\r<HomeTeam>Kansas City Royals</HomeTeam>\r<WeatherType>11</WeatherType>\r<Description></Description>\r<TempAdjust></TempAdjust>\r<Temperature>0</Temperature>\r</Item>\r</DW_Listing>\r<DW_Listing SportCode="AB" Sport="NFL">\r<Item>\r<Sportcode>AB</Sportcode>\r<GameID>4631</GameID>\r<Gamedate>9/18/2014 8:25:00 PM</Gamedate>\r<AwayTeam>Tampa Bay Buccaneers</AwayTeam>\r<HomeTeam>Atlanta Falcons</HomeTeam>\r<WeatherType>11</WeatherType>\r<Description>Game is being played inside a dome.</Description>\r<TempAdjust></TempAdjust>\r<Temperature>0</Temperature>\r</Item>\r</DW_Listing>\r<DW_Listing SportCode="AJ" Sport="CFL">\r<Item>\r<Sportcode>AJ</Sportcode>\r<GameID>1247</GameID>\r<Gamedate>9/19/2014 10:00:00 PM</Gamedate>\r<AwayTeam>Toronto Argonauts</AwayTeam>\r<HomeTeam>British Columbia Lions</HomeTeam>\r<WeatherType>2</WeatherType>\r<Description>Partly cloudy. Winds southeast at 5-10 m.p.h.</Description>\r<TempAdjust>Near</TempAdjust>\r<Temperature>65</Temperature>\r</Item>\r</DW_Listing>\r<DW_Listing SportCode="AF" Sport="CFOOT">\r<Item>\r<Sportcode>AF</Sportcode>\r<GameID>42695</GameID>\r<Gamedate>9/18/2014 7:30:00 PM</Gamedate>\r<AwayTeam>Auburn</AwayTeam>\r<HomeTeam>Kansas State</HomeTeam>\r<WeatherType>2</WeatherType>\r<Description>Partly cloudy. Winds southeast at 10-15 m.p.h.</Description>\r<TempAdjust>Around</TempAdjust>\r<Temperature>75</Temperature>\r</Item>\r<Item>\r<Sportcode>AF</Sportcode>\r<GameID>44032</GameID>\r<Gamedate>9/19/2014 8:00:00 PM</Gamedate>\r<AwayTeam>Connecticut</AwayTeam>\r<HomeTeam>So Florida</HomeTeam>\r<WeatherType>2</WeatherType>\r<Description>Partly cloudy with a 50-percent chance of rain. Winds northeast at 5-10 m.p.h.</Description>\r<TempAdjust>Around</TempAdjust>\r<Temperature>80</Temperature>\r</Item>\r</DW_Listing>\r</Detailed_Weather>\r<time_stamp> September 18, 2014, at 09:19 AM ET </time_stamp>\r</message>\r
\ No newline at end of file