title: NSInvalidArgumentException', reason: '-[__NSCFString isFileURL]: unrecognized selector sent to instance 0x712e450'
body: <p>I am new to iPhone App development. </p>
  
  <p>When I run a sample project, I did which parses an <code>xml</code> feed and displays the contents along with image in a table view, I get this error - </p>
  
  <pre><code>"NSInvalidArgumentException', reason: '-[__NSCFString isFileURL]: unrecognized selector sent to instance 0x712e450'"
  </code></pre>
  
  <p>It is occurring only when I try to display the image in <code>UITableViewCell</code>. </p>
  
  <p>The code I used for getting images from <code>url</code> is -</p>
  
  <pre><code>if([elementName isEqualToString:IMAGE])
  {
      NSURL *imageUrl = [attributeDict objectForKey:@"url"];
      NSData *imageData = [NSData dataWithContentsOfURL:imageUrl];
      bbc.image = [UIImage imageWithData:imageData];        
  }
  </code></pre>
  
  <p>where <code>bbc</code> is a <code>class(NSObject subclass)</code> object used to store the parsed contents.</p>