Hello,

I am developing using CF9. I am fetching RSS feed from twitter but XmlSearch is 
unable to return array of "<entry>" elements in the xml.

Please look into the following code: I can't be using CFFEED tag, since this 
project has to work on a CF 7 server.

<cfset sourceUrl = 
"http://search.twitter.com/search.atom?lang=en&q=ColdFusion+OR+%23CF+OR+CFML"; />
<cfhttp result="feedRaw"
        url = "#sourceUrl#"
        timeout="60" />
<cfset feed = XMLParse(trim(feedRaw.fileContent), false) />

The above part works fine. 

Problem is that none of the following lines work as expected. I expect to get 
an array of xml elements <entry>.

   <cfset items = xmlSearch(feed, "//entry") />


I have also tried using:

1. //feed/entry
2. /feed/entry 
3. entry
4. /*/entry
5. //*/entry

Nothing is helping. If you read W3C's page () you'll see various examples, all 
of them are failing. 

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
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:327663
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