Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » UML2 » Serialize a UMLResource as OMG XMI
Serialize a UMLResource as OMG XMI [message #626820] Tue, 22 July 2008 21:37
Joachim is currently offline JoachimFriend
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?
Previous Topic:Code generator problem with redefinitions
Next Topic:Import and Export from/to Enterprise Architect?
Goto Forum:
  


Current Time: Wed Apr 24 15:58:32 GMT 2024

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

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

Back to the top