Archive for February, 2008

XSD Export from EMF

Thursday, February 14th, 2008

When using an EMF implementation, I quite like persisting a model using XML rather than XMI. I also like to know what format the XML will be. If I generated the initial ecore from a schema then it’s clear that I’ll know, but what if I’ve changed the model since the initial generation, or what if I didn’t use an XSD as the source. Wouldn’t it be nice to be able to export the current XSD?

Of course, I was being blind; EMF already has this. Right click the genmodel, and select “Export Model…”, you’ll be presented with this dialog :
EMF XSD Export Dialog

Nice :-)