Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » EMF » Export ECore to XSD
Export ECore to XSD [message #1855765] Wed, 02 November 2022 08:50 Go to next message
Jonas Strehle is currently offline Jonas StrehleFriend
Messages: 1
Registered: November 2022
Junior Member
I'd like to export an Ecore Model in Eclipse to a XML Schema Definition.
Using the default export mechanism "XML Schema to XMI" works just quite fine but ExtendedMetaData annotations are not considered (//org/eclipse/emf/ecore/util/ExtendedMetaData)!

How can I generate a XSD including ExtendedMetaData (like minInclusive for java.lang.Integer) using the XMI datatypes to get something like below?


<xs:simpleType>
      <xs:restriction base="xs:integer">
         <xs:minInclusive value="42"/>
      </xs:restriction>
</xs:simpleType>
Re: Export ECore to XSD [message #1855769 is a reply to message #1855765] Wed, 02 November 2022 12:03 Go to previous message
Ed Merks is currently offline Ed MerksFriend
Messages: 33141
Registered: July 2009
Senior Member
The generated schemas are in general useless, e.g., XML Schema doesn't support multiple inheritance but Ecore does, XML Schema supports a limited set of data types but Ecore supports and unlimited set. I do not have the resource to invest in enhancing the exporter to be somewhat less useless in those limited cases where that's even feasible...

Ed Merks
Professional Support: https://www.macromodeling.com/
Previous Topic:Why is the Ecore iD attribute scoped to the resource?
Next Topic:[CDO] Reject change in conflict
Goto Forum:
  


Current Time: Thu Apr 25 21:47:50 GMT 2024

Powered by FUDForum. Page generated in 0.02532 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top