I am learning RestKit. I came across the elementToPropertyMapping feature which it provides. I am wondering whether I can use this mapping for xml documents? or is it just for JSON?
In the tutorial I found they are providing a JSON feed. So I am confused. Also Is there any other XML parser for IOS which provides this mapping feature.
Thanks
The tutorial that you found is out of date. elementToPropertyMappings is no longer used. Instead of inheriting from RKObject or RKManagedObject, you use the normal objective-c classes and map data to them with an RKObjectMapping.
You can find the new documentation here.
But yes, you can use RestKit’s object mapping for XML documents. The parser should detect the mimetype and use an xml parser instead of json; if it doesn’t you can explicitly tell it to use xml as per the linked documentation.