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
"" 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="" as it is supposed

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: Sat Aug 20 06:53:38 GMT 2022

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

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

Back to the top