Start implementation of composite attributes
Create or parse CoreData managed object model XMLs.
Contains struct objects which describe each XML elements.
struct
var momXML = MomXML() let entityStatus = MomEntity(name: "Status") momXML.model.entities.append(entityStatus) let elementStatus = MomElement(name: "Status") momXML.model.elements.append(elementStatus)
Contains extensions to make model objects Equatable.
Equatable
Contains struct extensions to create XML string from struct objects.
let string = momXML.xml
Contains struct extensions to create this struct objects using XML from SWXMLHash frameworks.
SWXMLHash
let xmlString = ... // from file or string let mom = MomXML(xml: SWXMLHash.parse(xmlString))
Contains CoreData extensions to create struct objects.
let manageObjectModel: NSManagegObjectModel = ... let mom: MomXML = manageObjectModel.mom
So you can serialize in memory data model into xml.
Contains struct extensions to create core data objects.
let mom: MomXML = .. let manageObjectModel: NSManagegObjectModel = mom.coreData
Carthage is a decentralized dependency manager for Objective-C and Swift.
Add the project to your Cartfile.
github "phimage/MomXML"
Run carthage update and follow the additional steps in order to add MomXML to your project.
Add the project to your Podfile to get Model/Equatable/ToXML.
pod "MomXML"
For only Model.
pod "MomXML/Model"
There is many subspec to get only the code you want.
For all about XMLs.
pod "MomXML/XML"
For all about core data.
pod "MomXML/CoreData"
Execute
carthage update --platform osx
©Copyright 2023 CCF 开源发展委员会 Powered by Trustie& IntelliDE 京ICP备13000930号
MomXML
Create or parse CoreData managed object model XMLs.
Project description
Model
Contains
struct
objects which describe each XML elements.Equatable
Contains extensions to make model objects
Equatable
.ToXML
Contains
struct
extensions to create XML string fromstruct
objects.FromXML
Contains
struct
extensions to create thisstruct
objects using XML fromSWXMLHash
frameworks.FromCoreData
Contains CoreData extensions to create
struct
objects.So you can serialize in memory data model into xml.
ToCoreData
Contains
struct
extensions to create core data objects.Setup
Using Carthage
Carthage is a decentralized dependency manager for Objective-C and Swift.
Add the project to your Cartfile.
Run carthage update and follow the additional steps in order to add MomXML to your project.
Using Cocoapod
Add the project to your Podfile to get Model/Equatable/ToXML.
For only Model.
There is many subspec to get only the code you want.
For all about XMLs.
For all about core data.
Limitations
Develop
Download dependencies
Execute
TODO
Contribute