Original Content |
Top Previous Next |
This is an example of the raw XML content pulled from the National Weather Service for the Boston-Logan International Airport to be parsed by example filter 4.
<?xml version="1.0" encoding="ISO-8859-1"?> <?xml-stylesheet href="latest_ob.xsl" type="text/xsl"?> <current_observation version="1.0" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="http://www.weather.gov/view/current_observation.xsd"> <credit>NOAA's National Weather Service</credit> <credit_URL>http://weather.gov/</credit_URL> <image> <url>http://weather.gov/images/xml_logo.gif</url> <title>NOAA's National Weather Service</title> <link>http://weather.gov</link> </image> <suggested_pickup>15 minutes after the hour</suggested_pickup> <suggested_pickup_period>60</suggested_pickup_period> <location>Boston, Logan International Airport, MA</location> <station_id>KBOS</station_id> <latitude>42.36056</latitude> <longitude>-71.01056</longitude> <observation_time>Last Updated on Nov 27 2017, 10:54 am EST</observation_time> <observation_time_rfc822>Mon, 27 Nov 2017 10:54:00 -0500</observation_time_rfc822> <weather>Mostly Cloudy</weather> <temperature_string>45.0 F (7.2 C)</temperature_string> <temp_f>45.0</temp_f> <temp_c>7.2</temp_c> <relative_humidity>48</relative_humidity> <wind_string>from the West at 16.1 gusting to 25.3 MPH (14 gusting to 22 KT)</wind_string> <wind_dir>West</wind_dir> <wind_degrees>280</wind_degrees> <wind_mph>16.1</wind_mph> <wind_gust_mph>25.3</wind_gust_mph> <wind_kt>14</wind_kt> <wind_gust_kt>22</wind_gust_kt> <pressure_string>1012.4 mb</pressure_string> <pressure_mb>1012.4</pressure_mb> <pressure_in>29.90</pressure_in> <dewpoint_string>26.1 F (-3.3 C)</dewpoint_string> <dewpoint_f>26.1</dewpoint_f> <dewpoint_c>-3.3</dewpoint_c> <windchill_string>38 F (3 C)</windchill_string> <windchill_f>38</windchill_f> <windchill_c>3</windchill_c> <visibility_mi>10.00</visibility_mi> <icon_url_base>http://forecast.weather.gov/images/wtf/small/</icon_url_base> <two_day_history_url>http://www.weather.gov/data/obhistory/KBOS.html</two_day_history_url> <icon_url_name>bkn.png</icon_url_name> <ob_url>http://www.weather.gov/data/METAR/KBOS.1.txt</ob_url> <disclaimer_url>http://weather.gov/disclaimer.html</disclaimer_url> <copyright_url>http://weather.gov/disclaimer.html</copyright_url> <privacy_policy_url>http://weather.gov/notice.html</privacy_policy_url> </current_observation>
|