I don't understand how this is failing... keeps on saying thumbnail doesn't
exist... BUT the next node down is content which DOES exist.

I'm trying to set lists of things based on the reply back from
livestream.com API and everything is ok but these thumbnail
Element thumbnail is undefined in a Java object of type class
coldfusion.xml.XmlNodeList.

item XmlText
title  XmlTextDj Necro - Fri Apr 10 2009  link  XmlText
pla_1521349091473958947  description  XmlText
 pubDate  XmlTextSun, 04 Jan 2009 03:32:38 GMT  guid  XmlText
pla_1521349091473958947  dc:date  XmlText2009-01-04T03:32:38Z
media:thumbnail  XmlText
XmlAttributes struct height 100  url
http://mogulus-user-files.s3.amazonaws.com/chv2torqdjtv/2009/04/09/9b5dd820-b625-4129-9e74-bae70d863eb6_990.jpg
width 100    media:content  XmlText
XmlAttributes struct duration 1963096  type video/x-flv  url
http://www.livestream.com/torqdjtv/ondemand/pla_1521349091473958947 <cfloop
        index="i"
        from="1"
        to="#request.ListClips.totalClips#"
        step="1">

This Doesn't Work:
 <cfset request.ListClips.thumbnailurls
= ListAppend(request.ListClips.thumbnailurls,
ListClips.Reply["rss"]["channel"]["item"][i]["thumbnail"]["XmlAttributes"]["url"],
',')>


But this DOES Work:
<cfset request.ListClips.durations
= ListAppend(request.ListClips.durations,
ListClips.Reply["rss"]["channel"]["item"][i]["content"]["XmlAttributes"]["duration"],
',')>

</cfloop>

Any ideas of what I'm missing here?

This is their API over view with the sample XML return.
http://www.livestream.com/userguide/index.php/Channel_API#List_Clips


Casey


~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Want to reach the ColdFusion community with something they want? Let them know 
on the House of Fusion mailing lists
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:328119
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4

Reply via email to