|
Re: Generated XSDs have XMI postfix [message #1804084 is a reply to message #1804077] |
Mon, 18 March 2019 05:12 |
Ed Merks Messages: 33141 Registered: July 2009 |
Senior Member |
|
|
If you simply enable Generate Schema in the GenModel, you don't have any control over the names or location of the results. If, from the context menu of the GenModel, you use Export Model..., you can control what type of schema is exported as well as the name(s) and the location of the resource(s).
Note however, that an XMI Schema is effectively a completely useless artifact that serves no real-life, practical purpose whatsoever. That's because an XMI serialization cannot be adequately described by an XML Schema. E.g., Ecore supports multiple inheritance of EClasses but XML Schema does not support multiple inheritance of Complex types.
If an XML Schema that properly describes the serialization is important for some real-life practical purpose, you're better off not to use an XMI serialization but rather an XML serialization as determined by the GenPackage's Resource Type property and restrict your model to avoid multiple inheritances. You can use ExtendedMetadata annotations to tweak how instances are serialized and how the generated schema looks.
Ed Merks
Professional Support: https://www.macromodeling.com/
|
|
|
Powered by
FUDForum. Page generated in 5.07157 seconds