Microsoft
Software
Hardware
Network
Question : Determining how many entries there are in and XML document with Coldfusion
I would like to determining how many entries there are in and XML document with Coldfusion
For example I would like to find out how many "entry" elements there are in this XML document with Coldfusion 8.
This is a YouTube play list. What I want to do is loop through different play lists and extract a few items to be able to embed some of the videos in the a web page.
http://gdata.youtube.com/f
eeds/api/p
laylists/
3
E761FF6E36
61C2B?v=2
Answer : Determining how many entries there are in and XML document with Coldfusion
Check this example:
<cfset xmlDocPath="
http://gdata.y
outube.com
/feeds/api
/playlists
/
3E761FF6E
3661C2B?v=
2
" >
<cfset xmlDoc=xmlParse(xmlDocPath
) >
<cfset xmlEntry=xmlDoc.feed.entry
>
<cfoutput>
Entry count: #ArrayLen(xmlEntry)#
</cfoutput>
Random Solutions
Should I enable or disable TCP Offload in my Hyper-V R2 environment?
Outlook/Exchange Issue with Emails not showing
SharePoint 2010 - MasterPage - How to create a "header" for Branding above the ribbon so Visitors can view
VB.Net get Excel columns itto an array
FileInputStream check if a file is in use
"Invalid Partition Table" - What are my options?
Can't Install Microsoft Entourage 2008 for Mac, Web Services Edition
Autocomplete
Remote access VPN via Thompson TG585 v7
how to build a query to display -- to a logged in user -- a list of other users with UserRoleID = 5 -- who ALSO live in the same state as the logged in user?