Hi all,

I'm getting an error message when I try to parse some XML from the National Weather Service. This used to work just fine, but now it doesn't for some reason. Here is the code in my .taf:

<@assign name="request$weather" value="<@url location='http:// www.nws.noaa.gov/data/current_obs/KBEH.xml'>"> <@assign name="request$weatherDom" value="<@DOM VALUE='@@request $weather'>">

and here is the error I get:

File: portal.taf
Position: get_weather
Class: Internal
Main Error Number: -902

An error occurred while parsing the XML.
Element 'two_day_history_url' is not valid for content model: '((credit,credit_URL,image,suggested_pickup,suggested_pickup_period,loca tion,station_id,latitude,longitude,elevation,observation_time,observatio n_time_rfc822,weather,temperature_string,temp_f,temp_c,relative_humidity ,wind_string,wind_dir,wind_degrees,wind_mph,wind_gust_mph,pressure_strin g,pressure_mb,pressure_in,dewpoint_string,dewpoint_f,dewpoint_c,heat_ind ex_string,heat_index_f,heat_index_c,windchill_string,windchill_f,windchi ll_c,visibility_mi,icon_url_base,icon_name,two_day_history_url,icon_url_ base,icon_url_name,ob_url,disclaimer_url,copyright_url),privacy_policy_u rl)'


I'm no XML expert, but the XML seems to be well-formed. Is this a namespace issue?

As always, thanks!


Brian Humes
JohnsonRauhoff

_________________________________________


---
[This E-mail scanned for viruses by Declude Virus]

________________________________________________________________________
TO UNSUBSCRIBE: Go to http://www.witango.com/developer/maillist.taf

Reply via email to