this topic has some points in common with #1072206, but we are not in the same context.
Here is the context:
We must import XML data from customer, who gives us the XSD... OK
But when I take a look at the XSD files, surprise, I see clear evidences of EMF (Ecore.XSD, EcoreXMI.xsd, and XMI.xsd).
Since the files are serialized with default eclipse XMI serializer, I guess that the XSD structure is recreated to "mimic" the XMI serialization.
So my question is : What is the best way to recreate the ecore mmodels from the XSD ?
Is the feature already existing in eclipse ?
Or an XSLT somewhere that do the job ?
Import the XSD like any other XSD ?
Can't you ask the customer for the Ecore model. You could try to create an new Ecore project using the XML Schema importer and hope there is enough information in the *.xsd they give you to recover the *.ecore they're really using, but of course you're better of with their *.ecore...