title: regular expression search with xml
body: <p>I'm working on parsing an xml feed and ii have the following tag</p>
  
  <pre><code>&lt;content:encoded&gt;
  &lt;![CDATA[
  &lt;p&gt;&lt;a href="http://www.highlandradio.com/wp-content/uploads/2013/07/An-Grianan-Hotel.jpg"&gt;&lt;img class="aligncenter size-full wp-image-54286" alt="An Grianan Hotel" src="http://www.highlandradio.com/wp-content/uploads/2013/07/An-Grianan-Hotel.jpg" width="488" height="244" /&gt;&lt;/a&gt;&lt;/p&gt; &lt;p&gt;Gardai are appealing for information about last an armed robbery at An Grianan Hotel in Burt in the earkly hours of this morning..&lt;/p&gt; &lt;p&gt;Three men entered the premises at quarter to three, at least one was armed with a shotgun. They escaped with a sum of money.&lt;/p&gt; &lt;p&gt;Local Superintendent Andy Archbold is leading the investigation, and has been outlining what happened&amp;#8230;&amp;#8230;&amp;#8230;&amp;#8230;..&lt;/p&gt; &lt;p&gt;&lt;strong&gt; &lt;/strong&gt;&lt;/p&gt;
  ]]&gt;
  &lt;/content:encoded&gt;
  </code></pre>
  
  <p>I need to be able to grab the image from this. I was wondering what is the best way to do this? could I search for a regular expression? Also with regard to the &amp;#8230 etc. is there a way to easily convert these?
  All help appreciated.
  Below is my current code for getting the feed and looping through it, my goal is t set the leftImage element of my data array to be the image inside the content encoded tag.</p>
  
  <pre><code>var url="http://www.highlandradio.com/feed/"; 
  //rss feed url
  var xhr = Titanium.Network.createHTTPClient();
  
  xhr.onload = function() {
      // Data is returned from the blog, start parsing
      var doc = this.responseXML.documentElement;
  
      // begin looping through blog posts
      var items = doc.getElementsByTagName("item");
      console.log(items);
      for (var i=0;i&lt;items.length;i++) {
          data.push({                
              title: "'"+items.item(i).getElementsByTagName("title").item(0).text+"'",
              leftImage:'NewsStory.png',
              dataToPass: "'"+items.item(i).getElementsByTagName("description").item(0).text+"'",    
              className: "TableRow", 
              hasChild: true, 
              jsTest: true,
              js:"external.js"
          });
  }
  };
  </code></pre>
  
  <p>.</p>