Mapping with XML and RestKit

btotw

New Member
Since I upgraded RestKit and started using cocoapods my old mapping ceases to work since all the values are now nested in a dictionary.Is there a more elegant way to do a RestKit mapping for XML (I am aware that JSON is the main line of attack for RestKit but XML is not going to disappear anytime soon either.Mapping before updating\[code\][mapping mapAttributes:@"username", @"password", @"firstName", @"lastName", nil];\[/code\]Mapping now with the \[code\].text\[/code\] suffixes\[code\][mapping mapKeyPath:@"username.text" toAttribute:@"username"];[mapping mapKeyPath:@"firstName.text" toAttribute:@"firstName"];[mapping mapKeyPath:@"lastName.text" toAttribute:@"lastName"];\[/code\]My Podfile\[code\]platform :ios, '6.0'pod 'RestKit', '0.10.3'pod 'RestKit/ObjectMapping/XML', '0.10.3'\[/code\]
 
Back
Top