This repository started as a fork of the excellent Mantle framework and added a MTLXMLAdapter and some XML specific NSValueTransformer utility functions. This allows you to use XML data to create Mantle model instances in addition to the builtin JSON support.
The new additions can be found in these files:
- MTLXMLAdapter.h
- MTLXMLAdapter.m
- NSValueTransformer+MTLXMLTransformerAdditions.h
- NSValueTransformer+MTLXMLTransformerAdditions.m
This is best used a Cocoapod that pulls in just the files above, and has Mantle and KISSXML as a dependency.
There is very basic support for serializing Mantle model instances into XML, provided that the user manually constructs the DDXMLElement node tree by implementing serializeToXMLElement. Some examples of current usage can be found in these test files:
Mantle XML Adapter is released under the MIT license, like Mantle itself, See LICENSE.md.