Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » UML2 » Importing XMI
Importing XMI [message #476967] Thu, 21 February 2008 19:41 Go to next message
Eclipse UserFriend
Originally posted by: pfuriani.uci.edu

I actually have 2 questions:

1.) UML2 saves the UML model as a .uml file. I tried to import this into my
other UML editor that only expects a .xmi file and it didn't work. Can UML2
save as a .xmi file instead of a .uml file?

2.) My other UML editor exports a UML model as a .xmi file. Is there a way
to import this .xmi file into UML2 so I can use UML2 to edit it?

Thank you.
Re: Importing XMI [message #476968 is a reply to message #476967] Thu, 21 February 2008 20:03 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: pfuriani.uci.edu

I have updates for both of my questions:

Update for question 1.) Ive found that if I add the <XMI> tags to the .uml
file generated by UML2 and change the extension to .xmi, then I can import
it into my other UML editor, but it only loads the very basic elements like
classes, enums, primitives, packages. It complains about "ownedAttribute",
"ownedLiteral", "generalization" not being supported so I lose all of these
details. Is there a better way to create a .xmi file instead of a .uml file
with UML2 that won't lose this information?

2.) I change the .xmi extension for the file generated by my other UML
editor to .uml and drag into my UML2 project in Eclipse. All the
information is there, but there are strange "Value" elements that appear as
a child of each class, package, enum, and operation element. Also, the
properties view doesn't work like it does if I had generated the uml file in
UML2. It doesn't give me all the options or list all of the properties.
Instead, each element has only the "Any", "Any Attribute", and "Mixed"
properties.
So, is there a better way to import .xmi/.uml files generated by
another UML editor that won't lose information and still allow me to edit
the uml using the properties view?

Thank you

"PFuriani" <pfuriani@uci.edu> wrote in message
news:fpkk01$1ps$1@build.eclipse.org...
>I actually have 2 questions:
>
> 1.) UML2 saves the UML model as a .uml file. I tried to import this into
> my other UML editor that only expects a .xmi file and it didn't work. Can
> UML2 save as a .xmi file instead of a .uml file?
>
> 2.) My other UML editor exports a UML model as a .xmi file. Is there a
> way to import this .xmi file into UML2 so I can use UML2 to edit it?
>
> Thank you.
>
Re: Importing XMI [message #476974 is a reply to message #476968] Fri, 22 February 2008 14:41 Go to previous messageGo to next message
Kenn Hussey is currently offline Kenn HusseyFriend
Messages: 1620
Registered: July 2009
Senior Member
1) You can save a UML model in "official" OMG interchange format by invoking
'File > Save As...' from the UML editor and specifying a file name with a
..xmi extension.

2) You should be able to open a file with a .xmi extension using the UML
editor (highlight the file in the navigator and select 'Open With > UML
Editor' from the context menu), assuming it contains UML 2.1.x elements
serialized in XMI 2.1 format. Which "other" UML editor are you using?

Kenn

"PFuriani" <pfuriani@uci.edu> wrote in message
news:fpkl8o$kr7$1@build.eclipse.org...
>I have updates for both of my questions:
>
> Update for question 1.) Ive found that if I add the <XMI> tags to the .uml
> file generated by UML2 and change the extension to .xmi, then I can import
> it into my other UML editor, but it only loads the very basic elements
> like classes, enums, primitives, packages. It complains about
> "ownedAttribute", "ownedLiteral", "generalization" not being supported so
> I lose all of these details. Is there a better way to create a .xmi file
> instead of a .uml file with UML2 that won't lose this information?
>
> 2.) I change the .xmi extension for the file generated by my other UML
> editor to .uml and drag into my UML2 project in Eclipse. All the
> information is there, but there are strange "Value" elements that appear
> as a child of each class, package, enum, and operation element. Also, the
> properties view doesn't work like it does if I had generated the uml file
> in UML2. It doesn't give me all the options or list all of the
> properties. Instead, each element has only the "Any", "Any Attribute", and
> "Mixed" properties.
> So, is there a better way to import .xmi/.uml files generated by
> another UML editor that won't lose information and still allow me to edit
> the uml using the properties view?
>
> Thank you
>
> "PFuriani" <pfuriani@uci.edu> wrote in message
> news:fpkk01$1ps$1@build.eclipse.org...
>>I actually have 2 questions:
>>
>> 1.) UML2 saves the UML model as a .uml file. I tried to import this into
>> my other UML editor that only expects a .xmi file and it didn't work.
>> Can UML2 save as a .xmi file instead of a .uml file?
>>
>> 2.) My other UML editor exports a UML model as a .xmi file. Is there a
>> way to import this .xmi file into UML2 so I can use UML2 to edit it?
>>
>> Thank you.
>>
>
>
Re: Importing XMI [message #476988 is a reply to message #476974] Tue, 26 February 2008 20:13 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: pfuriani.uci.edu

Im using Altova UModel 2008. Altova allows me to export as xmi 2.1 for uml
2.1.1. I tried dragging the .xmi file that Altova produces into my Eclipse
Project Folder and using the Open With > UML Model Editor and this worked
this time. Strangly, when I change the file extension from .xmi to .uml and
then do the same thing then the properties view doesn't work correctly. One
more question I have is, what versions of xmi/uml can be imported by the UML
Model Editor besides xmi 2.1 for uml 2.1.1?


"Kenn Hussey" <Kenn.Hussey@embarcadero.com> wrote in message
news:fpmmvk$cs1$1@build.eclipse.org...
> 1) You can save a UML model in "official" OMG interchange format by
> invoking 'File > Save As...' from the UML editor and specifying a file
> name with a .xmi extension.
>
> 2) You should be able to open a file with a .xmi extension using the UML
> editor (highlight the file in the navigator and select 'Open With > UML
> Editor' from the context menu), assuming it contains UML 2.1.x elements
> serialized in XMI 2.1 format. Which "other" UML editor are you using?
>
> Kenn
>
> "PFuriani" <pfuriani@uci.edu> wrote in message
> news:fpkl8o$kr7$1@build.eclipse.org...
>>I have updates for both of my questions:
>>
>> Update for question 1.) Ive found that if I add the <XMI> tags to the
>> .uml file generated by UML2 and change the extension to .xmi, then I can
>> import it into my other UML editor, but it only loads the very basic
>> elements like classes, enums, primitives, packages. It complains about
>> "ownedAttribute", "ownedLiteral", "generalization" not being supported so
>> I lose all of these details. Is there a better way to create a .xmi file
>> instead of a .uml file with UML2 that won't lose this information?
>>
>> 2.) I change the .xmi extension for the file generated by my other UML
>> editor to .uml and drag into my UML2 project in Eclipse. All the
>> information is there, but there are strange "Value" elements that appear
>> as a child of each class, package, enum, and operation element. Also, the
>> properties view doesn't work like it does if I had generated the uml file
>> in UML2. It doesn't give me all the options or list all of the
>> properties. Instead, each element has only the "Any", "Any Attribute",
>> and "Mixed" properties.
>> So, is there a better way to import .xmi/.uml files generated by
>> another UML editor that won't lose information and still allow me to edit
>> the uml using the properties view?
>>
>> Thank you
>>
>> "PFuriani" <pfuriani@uci.edu> wrote in message
>> news:fpkk01$1ps$1@build.eclipse.org...
>>>I actually have 2 questions:
>>>
>>> 1.) UML2 saves the UML model as a .uml file. I tried to import this
>>> into my other UML editor that only expects a .xmi file and it didn't
>>> work. Can UML2 save as a .xmi file instead of a .uml file?
>>>
>>> 2.) My other UML editor exports a UML model as a .xmi file. Is there a
>>> way to import this .xmi file into UML2 so I can use UML2 to edit it?
>>>
>>> Thank you.
>>>
>>
>>
>
>
Re: Importing XMI [message #476996 is a reply to message #476988] Wed, 27 February 2008 14:23 Go to previous message
Kenn Hussey is currently offline Kenn HusseyFriend
Messages: 1620
Registered: July 2009
Senior Member
The UML model editor expects that resources in "official" format end with a
..xmi extension, although with the recently added content type support,
things are a bit better... 2.1 is the only version of XMI that is supported
(since UML 2.x is based on XMI 2.1) and UML versions 2.1, 2.1.1, and 2.1.2
are supported.

Kenn

"PFuriani" <pfuriani@uci.edu> wrote in message
news:fq1ro0$m3r$1@build.eclipse.org...
> Im using Altova UModel 2008. Altova allows me to export as xmi 2.1 for
> uml 2.1.1. I tried dragging the .xmi file that Altova produces into my
> Eclipse Project Folder and using the Open With > UML Model Editor and this
> worked this time. Strangly, when I change the file extension from .xmi to
> .uml and then do the same thing then the properties view doesn't work
> correctly. One more question I have is, what versions of xmi/uml can be
> imported by the UML Model Editor besides xmi 2.1 for uml 2.1.1?
>
>
> "Kenn Hussey" <Kenn.Hussey@embarcadero.com> wrote in message
> news:fpmmvk$cs1$1@build.eclipse.org...
>> 1) You can save a UML model in "official" OMG interchange format by
>> invoking 'File > Save As...' from the UML editor and specifying a file
>> name with a .xmi extension.
>>
>> 2) You should be able to open a file with a .xmi extension using the UML
>> editor (highlight the file in the navigator and select 'Open With > UML
>> Editor' from the context menu), assuming it contains UML 2.1.x elements
>> serialized in XMI 2.1 format. Which "other" UML editor are you using?
>>
>> Kenn
>>
>> "PFuriani" <pfuriani@uci.edu> wrote in message
>> news:fpkl8o$kr7$1@build.eclipse.org...
>>>I have updates for both of my questions:
>>>
>>> Update for question 1.) Ive found that if I add the <XMI> tags to the
>>> .uml file generated by UML2 and change the extension to .xmi, then I can
>>> import it into my other UML editor, but it only loads the very basic
>>> elements like classes, enums, primitives, packages. It complains about
>>> "ownedAttribute", "ownedLiteral", "generalization" not being supported
>>> so I lose all of these details. Is there a better way to create a .xmi
>>> file instead of a .uml file with UML2 that won't lose this information?
>>>
>>> 2.) I change the .xmi extension for the file generated by my other UML
>>> editor to .uml and drag into my UML2 project in Eclipse. All the
>>> information is there, but there are strange "Value" elements that appear
>>> as a child of each class, package, enum, and operation element. Also,
>>> the properties view doesn't work like it does if I had generated the uml
>>> file in UML2. It doesn't give me all the options or list all of the
>>> properties. Instead, each element has only the "Any", "Any Attribute",
>>> and "Mixed" properties.
>>> So, is there a better way to import .xmi/.uml files generated by
>>> another UML editor that won't lose information and still allow me to
>>> edit the uml using the properties view?
>>>
>>> Thank you
>>>
>>> "PFuriani" <pfuriani@uci.edu> wrote in message
>>> news:fpkk01$1ps$1@build.eclipse.org...
>>>>I actually have 2 questions:
>>>>
>>>> 1.) UML2 saves the UML model as a .uml file. I tried to import this
>>>> into my other UML editor that only expects a .xmi file and it didn't
>>>> work. Can UML2 save as a .xmi file instead of a .uml file?
>>>>
>>>> 2.) My other UML editor exports a UML model as a .xmi file. Is there a
>>>> way to import this .xmi file into UML2 so I can use UML2 to edit it?
>>>>
>>>> Thank you.
>>>>
>>>
>>>
>>
>>
>
>
Re: Importing XMI [message #626069 is a reply to message #476967] Thu, 21 February 2008 20:03 Go to previous message
Eclipse UserFriend
Originally posted by: pfuriani.uci.edu

I have updates for both of my questions:

Update for question 1.) Ive found that if I add the <XMI> tags to the .uml
file generated by UML2 and change the extension to .xmi, then I can import
it into my other UML editor, but it only loads the very basic elements like
classes, enums, primitives, packages. It complains about "ownedAttribute",
"ownedLiteral", "generalization" not being supported so I lose all of these
details. Is there a better way to create a .xmi file instead of a .uml file
with UML2 that won't lose this information?

2.) I change the .xmi extension for the file generated by my other UML
editor to .uml and drag into my UML2 project in Eclipse. All the
information is there, but there are strange "Value" elements that appear as
a child of each class, package, enum, and operation element. Also, the
properties view doesn't work like it does if I had generated the uml file in
UML2. It doesn't give me all the options or list all of the properties.
Instead, each element has only the "Any", "Any Attribute", and "Mixed"
properties.
So, is there a better way to import .xmi/.uml files generated by
another UML editor that won't lose information and still allow me to edit
the uml using the properties view?

Thank you

"PFuriani" <pfuriani@uci.edu> wrote in message
news:fpkk01$1ps$1@build.eclipse.org...
>I actually have 2 questions:
>
> 1.) UML2 saves the UML model as a .uml file. I tried to import this into
> my other UML editor that only expects a .xmi file and it didn't work. Can
> UML2 save as a .xmi file instead of a .uml file?
>
> 2.) My other UML editor exports a UML model as a .xmi file. Is there a
> way to import this .xmi file into UML2 so I can use UML2 to edit it?
>
> Thank you.
>
Re: Importing XMI [message #626073 is a reply to message #476968] Fri, 22 February 2008 14:41 Go to previous message
Kenn Hussey is currently offline Kenn HusseyFriend
Messages: 1620
Registered: July 2009
Senior Member
1) You can save a UML model in "official" OMG interchange format by invoking
'File > Save As...' from the UML editor and specifying a file name with a
..xmi extension.

2) You should be able to open a file with a .xmi extension using the UML
editor (highlight the file in the navigator and select 'Open With > UML
Editor' from the context menu), assuming it contains UML 2.1.x elements
serialized in XMI 2.1 format. Which "other" UML editor are you using?

Kenn

"PFuriani" <pfuriani@uci.edu> wrote in message
news:fpkl8o$kr7$1@build.eclipse.org...
>I have updates for both of my questions:
>
> Update for question 1.) Ive found that if I add the <XMI> tags to the .uml
> file generated by UML2 and change the extension to .xmi, then I can import
> it into my other UML editor, but it only loads the very basic elements
> like classes, enums, primitives, packages. It complains about
> "ownedAttribute", "ownedLiteral", "generalization" not being supported so
> I lose all of these details. Is there a better way to create a .xmi file
> instead of a .uml file with UML2 that won't lose this information?
>
> 2.) I change the .xmi extension for the file generated by my other UML
> editor to .uml and drag into my UML2 project in Eclipse. All the
> information is there, but there are strange "Value" elements that appear
> as a child of each class, package, enum, and operation element. Also, the
> properties view doesn't work like it does if I had generated the uml file
> in UML2. It doesn't give me all the options or list all of the
> properties. Instead, each element has only the "Any", "Any Attribute", and
> "Mixed" properties.
> So, is there a better way to import .xmi/.uml files generated by
> another UML editor that won't lose information and still allow me to edit
> the uml using the properties view?
>
> Thank you
>
> "PFuriani" <pfuriani@uci.edu> wrote in message
> news:fpkk01$1ps$1@build.eclipse.org...
>>I actually have 2 questions:
>>
>> 1.) UML2 saves the UML model as a .uml file. I tried to import this into
>> my other UML editor that only expects a .xmi file and it didn't work.
>> Can UML2 save as a .xmi file instead of a .uml file?
>>
>> 2.) My other UML editor exports a UML model as a .xmi file. Is there a
>> way to import this .xmi file into UML2 so I can use UML2 to edit it?
>>
>> Thank you.
>>
>
>
Re: Importing XMI [message #626091 is a reply to message #476974] Tue, 26 February 2008 20:13 Go to previous message
Eclipse UserFriend
Originally posted by: pfuriani.uci.edu

Im using Altova UModel 2008. Altova allows me to export as xmi 2.1 for uml
2.1.1. I tried dragging the .xmi file that Altova produces into my Eclipse
Project Folder and using the Open With > UML Model Editor and this worked
this time. Strangly, when I change the file extension from .xmi to .uml and
then do the same thing then the properties view doesn't work correctly. One
more question I have is, what versions of xmi/uml can be imported by the UML
Model Editor besides xmi 2.1 for uml 2.1.1?


"Kenn Hussey" <Kenn.Hussey@embarcadero.com> wrote in message
news:fpmmvk$cs1$1@build.eclipse.org...
> 1) You can save a UML model in "official" OMG interchange format by
> invoking 'File > Save As...' from the UML editor and specifying a file
> name with a .xmi extension.
>
> 2) You should be able to open a file with a .xmi extension using the UML
> editor (highlight the file in the navigator and select 'Open With > UML
> Editor' from the context menu), assuming it contains UML 2.1.x elements
> serialized in XMI 2.1 format. Which "other" UML editor are you using?
>
> Kenn
>
> "PFuriani" <pfuriani@uci.edu> wrote in message
> news:fpkl8o$kr7$1@build.eclipse.org...
>>I have updates for both of my questions:
>>
>> Update for question 1.) Ive found that if I add the <XMI> tags to the
>> .uml file generated by UML2 and change the extension to .xmi, then I can
>> import it into my other UML editor, but it only loads the very basic
>> elements like classes, enums, primitives, packages. It complains about
>> "ownedAttribute", "ownedLiteral", "generalization" not being supported so
>> I lose all of these details. Is there a better way to create a .xmi file
>> instead of a .uml file with UML2 that won't lose this information?
>>
>> 2.) I change the .xmi extension for the file generated by my other UML
>> editor to .uml and drag into my UML2 project in Eclipse. All the
>> information is there, but there are strange "Value" elements that appear
>> as a child of each class, package, enum, and operation element. Also, the
>> properties view doesn't work like it does if I had generated the uml file
>> in UML2. It doesn't give me all the options or list all of the
>> properties. Instead, each element has only the "Any", "Any Attribute",
>> and "Mixed" properties.
>> So, is there a better way to import .xmi/.uml files generated by
>> another UML editor that won't lose information and still allow me to edit
>> the uml using the properties view?
>>
>> Thank you
>>
>> "PFuriani" <pfuriani@uci.edu> wrote in message
>> news:fpkk01$1ps$1@build.eclipse.org...
>>>I actually have 2 questions:
>>>
>>> 1.) UML2 saves the UML model as a .uml file. I tried to import this
>>> into my other UML editor that only expects a .xmi file and it didn't
>>> work. Can UML2 save as a .xmi file instead of a .uml file?
>>>
>>> 2.) My other UML editor exports a UML model as a .xmi file. Is there a
>>> way to import this .xmi file into UML2 so I can use UML2 to edit it?
>>>
>>> Thank you.
>>>
>>
>>
>
>
Re: Importing XMI [message #626099 is a reply to message #476988] Wed, 27 February 2008 14:23 Go to previous message
Kenn Hussey is currently offline Kenn HusseyFriend
Messages: 1620
Registered: July 2009
Senior Member
The UML model editor expects that resources in "official" format end with a
..xmi extension, although with the recently added content type support,
things are a bit better... 2.1 is the only version of XMI that is supported
(since UML 2.x is based on XMI 2.1) and UML versions 2.1, 2.1.1, and 2.1.2
are supported.

Kenn

"PFuriani" <pfuriani@uci.edu> wrote in message
news:fq1ro0$m3r$1@build.eclipse.org...
> Im using Altova UModel 2008. Altova allows me to export as xmi 2.1 for
> uml 2.1.1. I tried dragging the .xmi file that Altova produces into my
> Eclipse Project Folder and using the Open With > UML Model Editor and this
> worked this time. Strangly, when I change the file extension from .xmi to
> .uml and then do the same thing then the properties view doesn't work
> correctly. One more question I have is, what versions of xmi/uml can be
> imported by the UML Model Editor besides xmi 2.1 for uml 2.1.1?
>
>
> "Kenn Hussey" <Kenn.Hussey@embarcadero.com> wrote in message
> news:fpmmvk$cs1$1@build.eclipse.org...
>> 1) You can save a UML model in "official" OMG interchange format by
>> invoking 'File > Save As...' from the UML editor and specifying a file
>> name with a .xmi extension.
>>
>> 2) You should be able to open a file with a .xmi extension using the UML
>> editor (highlight the file in the navigator and select 'Open With > UML
>> Editor' from the context menu), assuming it contains UML 2.1.x elements
>> serialized in XMI 2.1 format. Which "other" UML editor are you using?
>>
>> Kenn
>>
>> "PFuriani" <pfuriani@uci.edu> wrote in message
>> news:fpkl8o$kr7$1@build.eclipse.org...
>>>I have updates for both of my questions:
>>>
>>> Update for question 1.) Ive found that if I add the <XMI> tags to the
>>> .uml file generated by UML2 and change the extension to .xmi, then I can
>>> import it into my other UML editor, but it only loads the very basic
>>> elements like classes, enums, primitives, packages. It complains about
>>> "ownedAttribute", "ownedLiteral", "generalization" not being supported
>>> so I lose all of these details. Is there a better way to create a .xmi
>>> file instead of a .uml file with UML2 that won't lose this information?
>>>
>>> 2.) I change the .xmi extension for the file generated by my other UML
>>> editor to .uml and drag into my UML2 project in Eclipse. All the
>>> information is there, but there are strange "Value" elements that appear
>>> as a child of each class, package, enum, and operation element. Also,
>>> the properties view doesn't work like it does if I had generated the uml
>>> file in UML2. It doesn't give me all the options or list all of the
>>> properties. Instead, each element has only the "Any", "Any Attribute",
>>> and "Mixed" properties.
>>> So, is there a better way to import .xmi/.uml files generated by
>>> another UML editor that won't lose information and still allow me to
>>> edit the uml using the properties view?
>>>
>>> Thank you
>>>
>>> "PFuriani" <pfuriani@uci.edu> wrote in message
>>> news:fpkk01$1ps$1@build.eclipse.org...
>>>>I actually have 2 questions:
>>>>
>>>> 1.) UML2 saves the UML model as a .uml file. I tried to import this
>>>> into my other UML editor that only expects a .xmi file and it didn't
>>>> work. Can UML2 save as a .xmi file instead of a .uml file?
>>>>
>>>> 2.) My other UML editor exports a UML model as a .xmi file. Is there a
>>>> way to import this .xmi file into UML2 so I can use UML2 to edit it?
>>>>
>>>> Thank you.
>>>>
>>>
>>>
>>
>>
>
>
Previous Topic:Loading emx is slow
Next Topic:No UML2 Properties in UML-sourced GenModel
Goto Forum:
  


Current Time: Thu Oct 06 13:40:57 GMT 2022

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

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

Back to the top