How do I create a RestKit object mapping for an XML element body to an object attribute?
XML:
<response>ok</response>
Mapping:
RKObjectMapping *responseMapping = [RKObjectMapping mappingForClass:[Response class]];
[responseMapping mapKeyPath:@"???" toAttribute:@"body"];
So if you want the string ‘ok’ in Response.body (who is an attribute of Response object) :
It works ?