Thanks Ben.

I stripped out the namespace reference and all is well now.

Thanks for the help.

Brian



_____________________________________

On Nov 2, 2005, at 2:03 PM, Ben Johansen wrote:

Hi, I ran into this earlier. See thread "RE: Witango-Talk: XPATH ??????" on
Witango-talk
Phil answered that it was a name space issue but I guess he didn't get that
the issue was not using xpath, the issue is the @DOM fails

I have attached a test taf

There are 2 options
http://127.0.0.1/dom_namespace_test.taf?strip=yes
this options uses <@replace to strip the namespace elements

or

http://127.0.0.1/dom_namespace_test.taf?strip=no
this option just shoves the return xml into the <@dom with striping
namespace info

I have first saw this on server version 5.5.003 and just tested it on
5.5.009 and still same problem.

Ben Johansen

-----Original Message-----
From: Brian Humes [mailto:[EMAIL PROTECTED]
Sent: Wednesday, November 02, 2005 7:05 AM
To: Witango Talk
Subject: Witango-Talk: XML parse error

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,lo ca tion,station_id,latitude,longitude,elevation,observation_time,observat io n_time_rfc822,weather,temperature_string,temp_f,temp_c,relative_humidi ty ,wind_string,wind_dir,wind_degrees,wind_mph,wind_gust_mph,pressure_str in g,pressure_mb,pressure_in,dewpoint_string,dewpoint_f,dewpoint_c,heat_i nd ex_string,heat_index_f,heat_index_c,windchill_string,windchill_f,windc hi ll_c,visibility_mi,icon_url_base,icon_name,two_day_history_url,icon_ur l_ 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

______________________________________________________________________ __
TO UNSUBSCRIBE: Go to http://www.witango.com/developer/maillist.taf
<DOM_Namespace_test.taf>

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

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

Reply via email to