CFUGitives User Group

I just got back from the CFUGitives user group; and had a few ramblings that I thought I'd share with the world.

First off, I spoke a bit about Flex and demonstrated some of the proof-of-principle demos I'd been working on. Nothing mind-blowing; but it's good to be moving forward w/ the technology.

Second; in earlier meetings they discussed creating a group application. Well, it looks like this is actually going to get off the ground. The 'leader' on the project signed up the project on cfopen.org. Since a lot of the group has high interest in Flex stuff, the decision is to try to implement things as an API; so that any front end can be built on top of it (And theoretically so that future features could be easily tacked on ). I offered to do some object modeling for it. I believe I'll be walking a fine line between Simplicity and Flexibility. Kudos to Erik for getting it started.

Third, we spoke a bit about Woot.com's RSS feed. Some of the items have colons in them, such as "media:thumbnail". How do you access them by name; as opposed to hard-coded array positions. We didn't walk away with a specific solution, but I stepped through the problem when I came home. This was my approach.

First, we need to get the feed:


<cfhttp url="http://www.woot.com/blog/rss.aspx" method="get">
<cfset results = xmlparse(cfhttp.filecontent)>

When traversing feeds like this, I often like to dump them to make it easier to see visually:


<cfdump var="#xmlparse(cfhttp.filecontent)#">

I see the top level channel is 'rss', so let me dump that:


<cfdump var="#results.rss#">

After, RSS is Channel (it's only child)


<cfdump var="#results.rss.channel#">

Now, we're going after media:thumbnail. We can skip the iTunes stuff and go right to the items. I'm not quite sure how to sort out product listings blog entries in the woot RSS (I believe the coder was doing that), so for this example i'm assuming that we're getting item 2, the first woot product (at the time of this writing)


<cfdump var="#results.rss.channel.item[2]#">

From there, I got the media:thumbnail. The ':' is invalid in a variable name, so you can't access it using the structure dot notation we've been using. I used the associative array notation:


<cfdump var="#results.rss.channel.item[2]["media:thumbnail"]#">

From there, we can get the thumbnail location:


<cfdump var="#results.rss.channel.item[2]["media:thumbnail"].xmltext#">

When dealing with foreign RSS feeds, I often use this type of drill down approach to get at the data I want / need.

Comments (Comment Moderation is enabled. Your comment will not appear until approved.)
robert francis's Gravatar Wow that work around was so simple and effective, thanks.
# Posted By robert francis | 3/6/07 6:05 PM
Jeffry Houser's Gravatar Glad to help. Thanks for reading.
# Posted By Jeffry Houser | 3/6/07 6:17 PM
wow gold's Gravatar In <a href=http://www.wowgold1000.com>wow gold</a> players <a href=http://www.wowgold1000.com>buy wow gold</a> create <a href=http://www.wowgold1000.com>cheap wow gold</a> a character <a href=http://www.wowgold1000.com>world of warcraft gold</a> and <a href=http://www.wowgold800.com/fast-wow-gold.html>fa... wow gold</a> adventure <a href=http://www.wowgold1000.com/age-of-conan-gold.html&... of conan gold</a> through <a href=http://www.wowgold1000.com/aoc-gold.html>aoc gold</a> the <a href=http://www.wowgold1000.com/ffxi-gil/>ffxi gil</a>, <a href=http://www.wowgold1000.com/buy-warhammer-gold.html... gold</a> missions, <a href=http://www.wowgold1000.com/buy-rs-gold.html>run... gold</a> blowing <a href=http://www.wowgold1000.com/buy-tibia-gold.html>... gold</a> things <a href=http://www.wowgold1000.com/buy-swg-credits.html>... credits</a> up <a href=http://www.wowgold1000.com/buy-lotro-gold.html>... gold</a> and <a href=http://www.wowgold1000.com/buy-2moons-dil.html>... dil</a>,<a href=http://www.wowgold1000.com/maple-story-mesos/>m... story mesos</a> bullets, to <a href=http://www.wowgold1000.com/eve-isk/>eve isk</a> name <a href=http://www.wowgold1000.com/lineage-2-adena/>lin... 2 adena</a> but a <a href=http://www.wowgold1000.com/eq-plat/>eq2 plat</a> few <a href=http://www.wowgold800.com>wow power leveling</a> things. Generally <a href=http://www.wowgold1000.com/wow-power-leveling.html... power leveling</a>, if you’ve <a href=http://www.wowgold1000.com/power-leveling.html>... leveling</a> seen <a href=http://www.wowgold800.com>world of warcraft power leveling</a> it in <a href=http://www.wowgold800.com>wow leveling</a> a matrix <a href=http://www.wowgold800.com>power leveling</a> film <a href=http://www.wowgoldvip.com/news_list.asp>wow gold</a> chances <a href=http://www.wowgoldvip.com>buy wow gold</a> are <a href=http://www.wowgoldvip.com>cheap wow gold</a> you can <a href=http://www.wowgoldvip.com>world of warcraft gold</a> do it <a href=http://www.wowgoldvip.com/wow-power-leveling.asp&g... power leveling</a> in the <a href=http://www.wowgoldvip.com/powerleveling.asp>pow... leveling</a> game. This <a href=http://www.wowgoldme.com>wow gold</a> is <a href=http://www.wowgoldme.com>cheap wow gold</a> excellent news <a href=http://www.wowgoldme.com>buy wow gold</a> for the vast <a href=http://www.powerleveling365.com>power leveling</a> mob <a href=http://www.powerleveling365.com>wow powerleveling</a> of people <a href=http://www.powerleveling365.com>wow power leveling</a> who <a href=http://www.powerleveling365.com>cheap power leveling</a> have <a href=http://www.wowgoldchina.com>wow gold</a> always <a href=http://www.wowgoldchina.com>buy wow gold</a> wanted to <a href=http://www.wowgoldchina.com>cheap wow gold</a> experience <a href=http://www.wowgoldchina.com>world of warcraft gold</a> the <a href=http://www.powerlevelingus.com>power leveling</a> matrix <a href=http://www.powerlevelingus.com>wow powerleveling</a> and do <a href=http://www.powerlevelingus.com>wow power leveling</a> their <a href=http://www.powerlevelingus.com>cheap power leveling</a> part <a href=http://www.igxee.com>power leveling</a> in helping <a href=http://www.igxee.com>wow powerleveling</a> the <a href=http://www.igxee.com>wow power leveling</a> people <a href=http://www.igxee.com>cheap power leveling</a> of Zion. Or <a href=http://wow.igwww.com>wow gold</a> even <a href=http://wow.igwww.com>buy wow gold</a> for those <a href=http://wow.igwww.com>cheap wow gold</a> people <a href=http://wow.igwww.com>world of warcraft gold</a> who <a href=http://www.cheap-wow-gold.de>wow gold</a> were secretly <a href=http://www.cheap-wow-gold.de>wow geld</a> sympathetic <a href=http://www.cheap-wow-gold.de>wow gold kaufen</a> to the <a href=http://www.cheap-wow-gold.de>billig wow gold</a> Machines, or those <a href=http://www.wow-paypal.com>wow gold</a> who found <a href=http://www.wow-paypal.com>cheap wow gold</a> the Merovingian <a href=http://www.wow-paypal.com>buy wow gold</a> charming <a href=http://www.bolts-nuts.com>bolts nuts</a> and were <a href=http://www.nbtrade.org>nut and bolt</a> secretly rooting for his Exiles throughout the film. <a href=http://www.thewowgold.net/billizard/index.php>w... gold</a> <a href=http://www.wowgoldliver.com/category/wow-gold/>... gold</a>
<a href=http://www.wowgoldliver.com/buy-wow-gold/>buy wow gold</a>
<a href=http://www.wowgoldliver.com/cheap-wow-gold/>che... wow gold</a>
# Posted By wow gold | 12/22/08 8:55 PM
All Content Copyright 2005, 2006, 2007, 2008, 2009 Jeffry Houser. May not be reused without permission
BlogCFC was created by Raymond Camden. This blog is running version 5.9.2.002.