title: NSMutableData response string
body: <p>I am trying to upload images to yFrog which is working just fine, but I want to grab just the URL from the response. When I use the <code>NSURLConnection</code> method </p>
  
  <pre><code>- (void) connectionDidFinishLoading:(NSURLConnection *)connection {
  [connection release];
  
  
  NSString* responseString = [[NSString alloc] initWithData:webData  
  encoding:NSUTF8StringEncoding];
  
  // NSString *url = [webData valueForKey:@"mediaurl"];
  NSLog(@"result: %@", responseString);
  }
  </code></pre>
  
  <p>I get this as my response string</p>
  
  <pre><code>result: &lt;?xml version="1.0" encoding="UTF-8"?&gt;
  &lt;rsp stat="ok"&gt;
  &lt;mediaid&gt;hszuhsp&lt;/mediaid&gt;
  &lt;mediaurl&gt;http://yfrog.com/hszuhsp&lt;/mediaurl&gt;
  &lt;/rsp&gt; 
  </code></pre>
  
  <p>As you can see in my blocked out code I tried to give my <code>NSMutableData</code> to give me the value of the key @"mediaurl" which just crashes. I think this should be relatively easy but for some reason I just can not figure out how to just grab  the URL out of the response. Any help would be greatly appreciated. Thank you</p>