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