[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Newsgroup Home]
|
[news.eclipse.modeling.mdt.uml2] Re: Serialize a UMLResource as OMG XMI
|
Hi Joachim,
Try simply saving your XXX.uml model as XXX.xmi.
>From the UML editor:
1. Select your .uml model.
2. Select File > Save As ...
3. as the file name, use a .xmi extension.
You can save as .cmof as well.
The details are described in the "New and Noteworthy" article here
http://wiki.eclipse.org/MDT_1.1_New_and_Noteworthy (Section Release 2.2 M5)
Cheers,
- James.
"Joachim Back" <j.back@xxxxxx> wrote in message
news:dadcbbccb2a0f032754819f3b6b83a1c$1@xxxxxxxxxxxxxxxxxx
>I have a UML model and its profiles available as UMLResource and can
>serialize it easily with the UMLResource::save method into a fine XMI file.
>
> The serialized file has the namespace
> "http://www.eclipse.org/uml2/2.1.0/UML" for UML elements.
> The namespace is from the constant field UMLPackage.eNS_URI.
>
> I'd like to have a real OMG conform XMI file with the namespace
> xmlns:uml="http://schema.omg.org/spec/UML/2.0/uml.xml" as it is supposed
> in http://www.omg.org/docs/formal/07-11-04.pdf.
>
> Is it possible to create such an XMI file from a Eclipse UML model?
> I helped myself by writing a XSLT which transforms the Eclipse XMI file
> into a OMG XMI file, but this seems tedious to me, as I thought that I am
> not the first one who likes this. I found many articles for the other way
> round, to import a OMG XMI into Ecore, but nothing in this direction.
>
> Can someone please help me with a hint?
>
>
>
>
>
>
>