Why doesn't Cases match all instances of XMLElement, given Infinity levelspec?
Column@ Cases[
Import["http://www.weather.gov/data/current_obs/KOAK.xml","XMLObject"],
XMLElement[tag:_,_,value:_]:> (tag-> value),Infinity
]
(* ==>
credit->{NOAA's National Weather Service}
credit_URL->{http://weather.gov/}
url->{http://weather.gov/images/xml_logo.gif}
title->{NOAA's National Weather Service}
link->{http://weather.gov}
image->{XMLElement[url,{},{http://weather.gov/images/xml_logo.gif}],XMLElement[title,{},{NOAA's National Weather Service}],XMLElement[link,{},{http://weather.gov}]}
suggested_pickup->{15 minutes after the hour}
suggested_pickup_period->{60}
location->{Oakland, CA}
station_id->{KOAK}
latitude->{37.7}
longitude->{-122.22}
observation_time->{Last Updated on Apr 11 2012, 12:53 pm PDT}
observation_time_rfc822->{Wed, 11 Apr 2012 12:53:00 -0700}
weather->{Mostly Cloudy}
temperature_string->{60.0 F (15.6 C)}
temp_f->{60.0}
temp_c->{15.6}
relative_humidity->{62}
wind_string->{Southwest at 13.8 MPH (12 KT)}
wind_dir->{Southwest}
wind_degrees->{220}
wind_mph->{13.8}
wind_gust_mph->{0.0}
wind_kt->{12}
wind_gust_kt->{0}
pressure_string->{1014.2 mb}
pressure_mb->{1014.2}
pressure_in->{29.95}
dewpoint_string->{46.9 F (8.3 C)}
dewpoint_f->{46.9}
dewpoint_c->{8.3}
windchill_string->{58 F (14 C)}
windchill_f->{58}
windchill_c->{14}
visibility_mi->{10.00}
icon_url_base->{http://weather.gov/images/fcicons/}
two_day_history_url->{http://www.weather.gov/data/obhistory/KOAK.html}
icon_url_name->{bkn.jpg}
ob_url->{http://www.weather.gov/data/METAR/KOAK.1.txt}
disclaimer_url->{http://weather.gov/disclaimer.html}
copyright_url->{http://weather.gov/disclaimer.html}
privacy_policy_url->{http://weather.gov/notice.html}
current_observation->{XMLElement[credit,{},{NOAA's National Weather Service}],XMLElement[credit_URL,{},{http://weather.gov/}],XMLElement[image,{},{XMLElement[url,{},{http://weather.gov/images/xml_logo.gif}],XMLElement[title,{},{NOAA's National Weather Service}],XMLElement[link,{},{http://weather.gov}]}],XMLElement[suggested_pickup,{},{15 minutes after the hour}],XMLElement[suggested_pickup_period,{},{60}],XMLElement[location,{},{Oakland, CA}],XMLElement[station_id,{},{KOAK}],XMLElement[latitude,{},{37.7}],XMLElement[longitude,{},{-122.22}],XMLElement[observation_time,{},{Last Updated on Apr 11 2012, 12:53 pm PDT}],XMLElement[observation_time_rfc822,{},{Wed, 11 Apr 2012 12:53:00 -0700}],XMLElement[weather,{},{Mostly Cloudy}],XMLElement[temperature_string,{},{60.0 F (15.6 C)}],XMLElement[temp_f,{},{60.0}],XMLElement[temp_c,{},{15.6}],XMLElement[relative_humidity,{},{62}],XMLElement[wind_string,{},{Southwest at 13.8 MPH (12 KT)}],XMLElement[wind_dir,{},{Southwest}],XMLElement[wind_degrees,{},{220}],XMLElement[wind_mph,{},{13.8}],XMLElement[wind_gust_mph,{},{0.0}],XMLElement[wind_kt,{},{12}],XMLElement[wind_gust_kt,{},{0}],XMLElement[pressure_string,{},{1014.2 mb}],XMLElement[pressure_mb,{},{1014.2}],XMLElement[pressure_in,{},{29.95}],XMLElement[dewpoint_string,{},{46.9 F (8.3 C)}],XMLElement[dewpoint_f,{},{46.9}],XMLElement[dewpoint_c,{},{8.3}],XMLElement[windchill_string,{},{58 F (14 C)}],XMLElement[windchill_f,{},{58}],XMLElement[windchill_c,{},{14}],XMLElement[visibility_mi,{},{10.00}],XMLElement[icon_url_base,{},{http://weather.gov/images/fcicons/}],XMLElement[two_day_history_url,{},{http://www.weather.gov/data/obhistory/KOAK.html}],XMLElement[icon_url_name,{},{bkn.jpg}],XMLElement[ob_url,{},{http://www.weather.gov/data/METAR/KOAK.1.txt}],XMLElement[disclaimer_url,{},{http://weather.gov/disclaimer.html}],XMLElement[copyright_url,{},{http://weather.gov/disclaimer.html}],XMLElement[privacy_policy_url,{},{http://weather.gov/notice.html}]}
*)


