I have been trying to do this as the last stage in a standalone application to convert from the file format used by a modeling program to an EMF model. I am able to convert the original format to XSD, which I can manually convert to an EMF model using the Eclipse importer, but I do not know how to do this programmatically to automate the process. Java commands would work fine, as would any command-line statement to do the same, since I could just execute the statement from within Java. I have spent a while looking for how to do this, trying http://wiki.eclipse.org/Generating_Dynamic_Ecore_from_XML_Schema and a variety of other potential solutions, but nothing seems to work. If anyone might be able to provide some sample code as to how to generate the .ecore and(/or?) .genmodel files from an XSD file, I'd very much appreciate it, but even some guidance as to how I can proceed would help very much.
Thank you.