Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Archived » XML Schema Definition (XSD) » Convert XMI to XSD.
Convert XMI to XSD. [message #29361] Fri, 12 September 2003 09:40
Eclipse UserFriend
Originally posted by: jan.odstrcil.systinet.com

Hi,

is here any way how to create XSD from XMI using EMF/XSD ?

Exactly I have Class Diagram serialized in XMI and need to get correspondent
XSD file that describes same data from XSD point of view.

Thanks

Jan
Re: Convert XMI to XSD. [message #29399 is a reply to message #29361] Thu, 11 September 2003 22:26 Go to previous message
Eclipse UserFriend
Originally posted by: merks.ca.ibm.com

Jan,

The only way to do this would be to import the class diagram as an Ecore model
and then to use the code generator to generate the model; if the "Generate
Schema" property set to true, the generation step will produce .xsd files
corresponding to the XMI serialization of the model. Unfortunately EMF doesn't
support importing directly from an XMI serialization of a class diagram, so this
may not be very helpful. The resulting schema is pretty ugly too, and we are
currently looking at how to generate better schemas...


Jan Odstrcil wrote:

> Hi,
>
> is here any way how to create XSD from XMI using EMF/XSD ?
>
> Exactly I have Class Diagram serialized in XMI and need to get correspondent
> XSD file that describes same data from XSD point of view.
>
> Thanks
>
> Jan
Re: Convert XMI to XSD. [message #578031 is a reply to message #29361] Thu, 11 September 2003 22:26 Go to previous message
Ed Merks is currently offline Ed MerksFriend
Messages: 33113
Registered: July 2009
Senior Member
Jan,

The only way to do this would be to import the class diagram as an Ecore model
and then to use the code generator to generate the model; if the "Generate
Schema" property set to true, the generation step will produce .xsd files
corresponding to the XMI serialization of the model. Unfortunately EMF doesn't
support importing directly from an XMI serialization of a class diagram, so this
may not be very helpful. The resulting schema is pretty ugly too, and we are
currently looking at how to generate better schemas...


Jan Odstrcil wrote:

> Hi,
>
> is here any way how to create XSD from XMI using EMF/XSD ?
>
> Exactly I have Class Diagram serialized in XMI and need to get correspondent
> XSD file that describes same data from XSD point of view.
>
> Thanks
>
> Jan


Ed Merks
Professional Support: https://www.macromodeling.com/
Previous Topic:unexpected differences with/without target namespace
Next Topic:Convert XMI to XSD.
Goto Forum:
  


Current Time: Thu Mar 28 16:45:14 GMT 2024

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

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

Back to the top