PDA

View Full Version : Model Generation tools from XML schemas



pcmantz
22 Aug 2011, 2:23 PM
Hello,

I am working with an REST-ful API that returns XML. I have a set of Relax NG schemas that describe the XML objects faithfully. These schemas are currently under a lot of change, so I would like to use tools that make keeping the consumption of the API as up-to-date as possible. In particular, I would like to generate my Model code using these schemas.

Has anyone written any tools for generating Javascript prototypes from XML schemas? My use-case for such a tool would be as an off-line process. Whenever we have an upstream schema change, I would like to take the published updated schemas, run the model-generating script, and use that to update my Ext JS application.