Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Generate classes from XML Schema [duplicate]

Is there any XML binding framework for Objective-C?

I've tried a few searches on google and didn't find anything yet.

I'm looking for something that reads from a XSD/DTD/XML and generate:

  • the Model classes to store values
  • the actual parser that reads from the XML and populate the model classes
like image 710
Alexandre L Telles Avatar asked Nov 26 '22 19:11

Alexandre L Telles


2 Answers

Here is a vast and simple tutorial that helps to read as well as create xml documents using GDataXMLParser http://www.raywenderlich.com/725/how-to-read-and-write-xml-documents-with-gdataxml

like image 146
ArunGJ Avatar answered Nov 28 '22 09:11

ArunGJ


There seems to be a bit of confusion about SAXy. It is not another DOM library like NSXMLDocument or KissXML.

SAXy targets a different problem space, that of binding XML directly to domain objects using the lighter-weight event driven model. It's more akin to JAXB or Castor in the Java world.

It's closest relative in the Objective-C realm is the modeling code in RestKit. Although, RestKit advertises XML support, it's largely been dropped from the current version. SAXy was written to fill the void.

like image 23
Richard Easterling Avatar answered Nov 28 '22 09:11

Richard Easterling