re-creating ecore model from EMF exported XSD [message #1774053] |
Mon, 09 October 2017 17:55  |
Eclipse User |
|
|
|
Hello
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).
<xsd:schema xmlns:Core="http://www.toto.com/icd/core/5.0.3" xmlns:dmp="http://www.toto.com/dmp/5.0.3" xmlns:ecore="http://www.eclipse.org/emf/2002/Ecore" xmlns:xmi="http://www.omg.org/XMI" xmlns:xsd="http://www.w3.org/2001/XMLSchema" targetNamespace="http://www.toto.com/icd/core/5.0.3">
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 ?
Thank your for your advices.
BR
|
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.04581 seconds