Extension to Mantle to allows you to convert XML to model objects and from a model instance to XML.
Objective-C Shell Other
#2 Compare This branch is 14 commits ahead, 810 commits behind Mantle:master.
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
KissXML @ 934a9e6
Mantle.xcodeproj
Mantle
MantleTests
libextobjc @ 6a78cd9
script
.gitignore
.gitmodules
CONTRIBUTING.md
LICENSE.md
MantleXMLAdapter.podspec
README.md

README.md

Mantle XML Adapter

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:

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:

License

Mantle XML Adapter is released under the MIT license, like Mantle itself, See LICENSE.md.