Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » UML2 Tools » Importing XSD (who uses hypermodel ?)
Importing XSD (who uses hypermodel ?) [message #509847] Mon, 25 January 2010 15:31 Go to next message
malat is currently offline malat
Messages: 2
Registered: January 2010
Junior Member
Hi there,

I am working in a project were we extensively make use of XSD. XSD is the actual file format we use to store our UML model.
I was trying to import our XSD file into Eclipse so as to see it 'visually'. This did not work as I expected. So I had to install hypermodel (xmlmodeling.com) to actually be able to generate a UML view of this XSD file. I was wondering if I did not miss anything obvious as eclipse is quite difficult to install (first time user). Or are there still people using hypermodel from xmlmodeling.com ?

Thanks
Re: Importing XSD (who uses hypermodel ?) [message #510021 is a reply to message #509847] Tue, 26 January 2010 09:12 Go to previous messageGo to next message
Vlad Varnica is currently offline Vlad Varnica
Messages: 546
Registered: July 2009
Location: Milton Keynes - UK
Senior Member
If I understand your demand you are talking about XSD which provides the syntax and defines a way in which elements and attributes can be represented in a XML document.
The only problem I see is that the UML metamodel or EMF models are not using this syntax Confused
I know that XSD is recommended by W3C but for the modeling syntax only the OMG specifications are to be considered.

You need to transform your XSD into XMI manually (I mean to write a parser) or to use transformation rules with then you will be able to visualize your UML diagrams using any of the UML plugin editor.
Re: Importing XSD (who uses hypermodel ?) [message #510058 is a reply to message #510021] Tue, 26 January 2010 12:24 Go to previous messageGo to next message
Ed Merks is currently offline Ed Merks
Messages: 26141
Registered: July 2009
Senior Member
Vlad,

Comments below.

Vlad Varnica wrote:
> If I understand your demand you are talking about XSD which provides
> the syntax and defines a way in which elements and attributes can be
> represented in a XML document.
> The only problem I see is that the UML metamodel or EMF models are not
> using this syntax :?
In fact EMF can import an Ecore model from an XML Schema and will
serialize instances to conform to that XML Schema.
> I know that XSD is recommended by W3C but for the modeling syntax only
> the OMG specifications are to be considered.
Considered by whom? Part of EMF's success lies in being inclusive and
helping to provide data integration for models specified as XML Schemas.
>
> You need to transform your XSD into XMI manually
This doesn't even make sense. He's not asking to visualize instances of
his schema, he's asking to visualize the schema itself. There is no
direct mapping from XSD to UML provided at Eclipse. It is possible to
import to Ecore and export that to UML and of course it's possible to
use Ecore Tools to visualize the resulting Ecore just as if it were a
UML class diagram. But I'm not sure if that's what he wants. The Web
Tools project provides an XML Schema editor that includes a graphical
view; maybe that's a good approach.
> (I mean to write a parser) or to
> usehttp://www.eclipse.org/forums/index.php?t=thread&frm_ id=117 with
> then you will be able to visualize your UML diagrams using any of the
> UML plugin editor.
Re: Importing XSD (who uses hypermodel ?) [message #510189 is a reply to message #510058] Tue, 26 January 2010 16:13 Go to previous messageGo to next message
Vlad Varnica is currently offline Vlad Varnica
Messages: 546
Registered: July 2009
Location: Milton Keynes - UK
Senior Member
Ed,

Quote:
Considered by whom? Part of EMF's success lies in being inclusive and helping to provide data integration for models specified as XML Schemas.

I agree with you but I am always very disappointed by EMF trying to target any XML schema and not to be dedicated to UML needs. This is the biggest EMF historical mistake and this is why EMF will never have the success it would have deserve !!
Re: Importing XSD (who uses hypermodel ?) [message #510314 is a reply to message #510189] Wed, 27 January 2010 08:39 Go to previous message
Ed Merks is currently offline Ed Merks
Messages: 26141
Registered: July 2009
Senior Member
Vlad,

Comments below.

Vlad Varnica wrote:
> Ed,
>
> Quote:
>> Considered by whom? Part of EMF's success lies in being inclusive and
>> helping to provide data integration for models specified as XML Schemas.
>
> I agree with you but I am always very disappointed by EMF trying to
> target any XML schema and not to be dedicated to UML needs.
There's obviously no pleasing everyone. The real world is rife with
schemas and there's a real need to bind those to usable Java APIs. EMF
does that an a large portion of EMF's client base exploits that.
Supporting UML is a relative small part of what EMF is about.
> This is the biggest EMF historical mistake and this is why EMF will
> never have the success it would have deserve !!
Obviously I don't agree. Supporting things other than UML is important
to the community. The real problem for you seems to be that the EMF
community isn't purely just a UML community.
Re: Importing XSD (who uses hypermodel ?) [message #625480 is a reply to message #510058] Tue, 26 January 2010 16:13 Go to previous message
Vlad Varnica is currently offline Vlad Varnica
Messages: 546
Registered: July 2009
Location: Milton Keynes - UK
Senior Member
Ed,

Quote:
> Considered by whom? Part of EMF's success lies in being inclusive and helping to provide data integration for models specified as XML Schemas.

I agree with you but I am always very disappointed by EMF trying to target any XML schema and not to be dedicated to UML needs. This is the biggest EMF historical mistake and this is why EMF will never have the success it would have deserve !!
Re: Importing XSD (who uses hypermodel ?) [message #625481 is a reply to message #625480] Wed, 27 January 2010 08:39 Go to previous message
Ed Merks is currently offline Ed Merks
Messages: 26141
Registered: July 2009
Senior Member
Vlad,

Comments below.

Vlad Varnica wrote:
> Ed,
>
> Quote:
>> Considered by whom? Part of EMF's success lies in being inclusive and
>> helping to provide data integration for models specified as XML Schemas.
>
> I agree with you but I am always very disappointed by EMF trying to
> target any XML schema and not to be dedicated to UML needs.
There's obviously no pleasing everyone. The real world is rife with
schemas and there's a real need to bind those to usable Java APIs. EMF
does that an a large portion of EMF's client base exploits that.
Supporting UML is a relative small part of what EMF is about.
> This is the biggest EMF historical mistake and this is why EMF will
> never have the success it would have deserve !!
Obviously I don't agree. Supporting things other than UML is important
to the community. The real problem for you seems to be that the EMF
community isn't purely just a UML community.
Previous Topic:Importing XSD (who uses hypermodel ?)
Next Topic:Initializing sequence diagram from in-memory model
Goto Forum:
  


Current Time: Sat Oct 25 01:39:42 GMT 2014

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

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