Sorry - I missed your email. If xmlResult is the parsed node, then to
get the value you want, its just

xmlResult.xmlText


On Mon, Jul 21, 2008 at 12:52 PM, Joel Polsky <[EMAIL PROTECTED]> wrote:
> Hi Raymond,
> Thanks for the reply -- I looked at your stuff, nice - but I'm already down 
> my own and different path and have coded based on the samples at Yahoo - 
> (guess that's your doing too?)  The Yahoo API is restrictive in its use and 
> seems only to provide a 2 day forecast - I want 5 days.  (I have an API key 
> set up with weather.com's service for this.)
>
> My problem now is more coding.  I'm able to query any zipcode or 
> international destination and get an xml feed response - but when I try to 
> display more than on node element I get xml errors. I need to be able to get 
> the value of the xml node not the node it's self.  For example I get this:
>
>  <?xml version="1.0" encoding="UTF-8" ?>
>  <dnam>Brimfield, MA (01010)</dnam>
>
> I want: "Brimfield, MA (01010)" in a string so I can strip off the '(01010)' 
> portion.
>
> Current code for the above result is:
>  <cfhttp url="#urlRequested#" result="response">
>  <cfset xmlResult = xmlParse(response.fileContent)>
>
> Anyone have ideas.. What's missing?
>
> Thanks!
>> Yes, it can. If you go to the Weather site and search for London,
>> England, you get a page that has the location ID in the url, which
>> you
>> can then use with their API.
>>
>> FYI, don't forget I have an entire CFC library for Yahoo services
>> (cfyahoo.riaforge.org). This makes using Yahoo's services even easier.
>>
>>
>> On Thu, Jul 17, 2008 at 1:46 PM, Joel Polsky <[EMAIL PROTECTED]>
>> wrote:
>> > Does anyone know if the yahoo weather provides international weather,
>> (Canada, Europe, Caribbean etc) http://developer.yahoo.com/weather/
>> >
>> > And surprisingly they have a cf page too! http://developer.yahoo.
>> com/coldfusion/
>>
>> Not surprising - I bugged them until they let me write one. ;)
>>
> -r
>
> 

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to 
date
Get the Free Trial
http://ad.doubleclick.net/clk;203748912;27390454;j

Archive: 
http://www.houseoffusion.com/groups/CF-Newbie/message.cfm/messageid:3889
Subscription: http://www.houseoffusion.com/groups/CF-Newbie/subscribe.cfm
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.15

Reply via email to