资 源 简 介
Parses XML Schema files (XSD) and generates Objective-C classes with no dependencies apart from libxml2, which is part of iOS and Mac OS X.
xsd2cocoa is a code generator which converts the XML type and element definitions in XML Schema files into Objective C code. It no only generates Objective C class definitions with properties for XML elements and attributes, but also marshalling and unmarshalling code which can read and write XML files conforming to the source schema.
xsd2cocoa is still a quite young project, and won"t support all schema constructs.
What works already:
* Complex type elements
* Simple type attributes
* Simple type elements
* Sequences
* Choices
* Elements with local complex types
* complex type inheritance by extension
* simple type inheritance by restriction (the ObjC counter parts for the XSD built-in base type are synthesized for such types)
* Static methods for marshalling/unmarshalling global elements
* Supports ARC and non-ARC confi