Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » XML Schema Definition (XSD) » Convert XMI to XSD.
Convert XMI to XSD. [message #29361] Fri, 12 September 2003 05:40
Eclipse User
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 18:26 Go to previous message
Eclipse User
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 18:26 Go to previous message
Ed Merks is currently offline Ed Merks
Messages: 25749
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
Previous Topic:unexpected differences with/without target namespace
Next Topic:Convert XMI to XSD.
Goto Forum:
  


Current Time: Wed Apr 23 19:50:28 EDT 2014

Powered by FUDForum. Page generated in 0.03657 seconds