Serialize a UMLResource as OMG XMI [message #626820] |
Tue, 22 July 2008 21:37 |
Joachim Messages: 16 Registered: July 2009 |
Junior Member |
|
|
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?
|
|
|
Powered by
FUDForum. Page generated in 0.03008 seconds