Skip to content

Extension to Mantle to allows you to convert XML to model objects and from a model instance to XML.

License

Notifications You must be signed in to change notification settings

mbaranowski/MantleXMLAdapter

 
 

Repository files navigation

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.

About

Extension to Mantle to allows you to convert XML to model objects and from a model instance to XML.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Objective-C 97.3%
  • Shell 1.8%
  • Other 0.9%