title: Coldfusion - Check if XmlNode exists
body: <p>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.</p>
  
  <pre><code>&lt;cfset YouTubeXml = xmlParse(#YouTubeFavourites.FileContent#) /&gt;
  &lt;cfset group = XmlSearch(YouTubeXml, "//media:group") /&gt;    
  
  &lt;cfloop from="1" to="25" index="i"&gt;
      &lt;cfoutput&gt;
          #group[i]['media:thumbnail'][i]['url']#
      &lt;/cfoutput&gt;
  &lt;/cfloop&gt;
  </code></pre>
  
  <p>Basically the error says that <code>#group[i]['media:thumbnail'][i]['url']#</code> doesn't exist.  Hope someone can help.</p>