I've really been struggling to find a solution to this. My code is different from what I've seen on a Google search, and nothing I've tried will work. Basically as the title suggests I want to check if an Xml Node exists. This is because of erratic XML returned from a YouTube feed. Code is below.
<cfset YouTubeXml = xmlParse(#YouTubeFavourites.FileContent#) />
<cfset group = XmlSearch(YouTubeXml, "//media:group") />
<cfloop from="1" to="25" index="i">
<cfoutput>
#group[i]['media:thumbnail'][i]['url']#
</cfoutput>
</cfloop>
Basically the error says that #group[i]['media:thumbnail'][i]['url']#
doesn't exist. Hope someone can help.