title: How to get RSS for iOS / XCode into NSDictionary
body: <p>I have the following code which worked fine in iOS but the structure of the XML-File has changed and I have no idea how to maintain my code :-( Anyone could help? If possible I'd like to change only this code because the rest should work fine. I see that the download itself works fine because receivedData contains 53k but I don't know how to transfer this into a NSDictionary now... I've read some other examples but they seem to use a totally different code and I don't want to rewrite too many parts of my application</p>
  
  <pre><code>- (NSDictionary *)getRSS: (NSString *)aKey
  {
  #define kURL @"https://developer.apple.com/news/rss/news.rss"
  NSMutableString *finalURLStr = [NSMutableString stringWithString: kURL];
  NSMutableURLRequest *request = nil;
  NSHTTPURLResponse *response = nil;
  NSError *error = nil;
  NSData *receivedData = nil;
  request = [NSMutableURLRequest requestWithURL: [NSURL URLWithString: finalURLStr]
                                    cachePolicy: NSURLRequestUseProtocolCachePolicy
                                timeoutInterval: 60.0];
  receivedData = [NSURLConnection sendSynchronousRequest: request
                                       returningResponse: &amp;response
                                                   error: &amp;error];
  if (receivedData) {
      id jsonObj = [NSJSONSerialization JSONObjectWithData: receivedData
                                                   options: NSJSONReadingMutableContainers | NSJSONReadingAllowFragments
                                                     error: &amp;error];
      NSArray *resultArray = (jsonObj != [NSNull null] ? [jsonObj objectForKey: @"data"] : nil);
      // Extract record from response
      if ([resultArray count])
          return [resultArray objectAtIndex: 0];
  } else {
      // Handle the error
  }
  return nil;
  }
  </code></pre>
  
  <p>Many thanks in advance!!</p>