is it possible to install AFNetworking 2.0 with Restkit
In version 1.3.0 you have access to AFXMLRequestOperation
which should fulfil the same goal.
It would be a lot of work to update RestKit to use version 2.0, or to rename so that you could use both versions...
A quick and dirty solution could be to just rename the files of afnetworking to af1networking and all the classes/interfaces/constants to AF1xxxx. If we only had namespaces in Objective-C or the AFNetworking guys would have prefixed the new version with AF2...
I think what i describe could be done with a project search and replace in hours.
An Alternative would be to use MKNetworkKit for the networking - it is similiar to afnetworking/afnetworking2 but then you end up having 2 different network libraries and AFNetworking seems to have more effort put into.
Using a forked version of XMLDictionary, I basically achieved what I wanted to achieve by asking the above question by doing the following:
NSURL *url = [NSURL URLWithString:urlStr];NSURLRequest *request = [NSURLRequest requestWithURL:url];AFXMLRequestOperation *operation =[AFXMLRequestOperation XMLParserRequestOperationWithRequest:request success:^(NSURLRequest *request, NSHTTPURLResponse *response, NSXMLParser *XMLParser) { NSDictionary *dict = [NSDictionary dictionaryWithXMLParser:XMLParser]; // do stuff with dict failure:failure:^(NSURLRequest *request, NSHTTPURLResponse *response, NSError *error, NSXMLParser *XMLParser){ NSLog(@"somethign weng wrong in fetching news data: %@", [error localizedDescription]);}];[operation start];