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 ?
Vlad Varnica Messages: 546 Registered: July 2009 Location: Milton Keynes - UK
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 :?
I know that XSD is recommended by W3C but for the modeling syntax only the OMG specifications are to be considered.
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.