title: How to grab a single element of a specific field from ColdFusion feed?
body: <p>I'm no expert in Coldfusion (frankly, I know almost nothing about it), but I've been tasked at work with setting up an Atom feed to show up on one of our client's webpages.</p>
  
  <p>I've managed to get everything wired up correctly, and am able to display the feed on an external website. I'm still having one issue though -- I need a link to the posts, and the feed displays a bunch of different links to the same thing, separated by commas, under that field.</p>
  
  <p>I only need to grab the first one so I can embed it. Is there an easy way to do this without my naive approach of just parsing the string (which I also don't know how to do in CF)?</p>
  
  <p>Here's the code I'm using to generate content now, the <code>linkhref</code> field is what I need to grab the first member of:</p>
  
  <pre><code>&lt;cfset feedurl="http://*******.blogspot.com/atom.xml" /&gt;
  &lt;cffeed source="#feedurl#" properties="feedmeta" query="feeditems" /&gt;
  
  &lt;ul&gt;
      &lt;cfoutput query="feeditems"&gt;
      &lt;li&gt;#title#&lt;/li&gt;
          &lt;li&gt;#linkhref#&lt;/li&gt;
          &lt;li&gt;#content#&lt;/li&gt;
      &lt;/cfoutput&gt;
  &lt;/ul&gt;
  </code></pre>
  
  <p>What I'm getting back is something like this: <code>http://*****.blogspot.com/2012/09/****.html,http://****.blogspot.com/feeds/****/comments/default,http://****.blogspot.com/2012/09/****</code> and so on. </p>
  
  <p>Any help would be greatly appreciated! Thanks!</p>