Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » EMF » Converting output XMI file to XML(Can the output be in XML?)
Converting output XMI file to XML [message #513309] Tue, 09 February 2010 18:03 Go to next message
Herb Miller is currently offline Herb MillerFriend
Messages: 139
Registered: January 2010
Senior Member
This may be a dumb question, but I am asking it because my boss wants the output of our model to be in XML instead of XMI. I do not know why? I thought that XMI already was an XML type file.

I have taken a UML diagram from model to RCP stand-alone app using Eclipse. Of course the changes in the model are stored as XMI files when we run the app. Is there any way I can change this output to XML? I know I could write a program to convert if necessary, but is there something along the path inside Eclipse from EMF model to RCP stand-alone where XML can be selected as the desired output format?

It seems like I saw something once that said "Ecore to XML". Is that what Ecore to XML does?

Thanks,
Re: Converting output XMI file to XML [message #513326 is a reply to message #513309] Tue, 09 February 2010 18:40 Go to previous message
Ed Merks is currently offline Ed MerksFriend
Messages: 33140
Registered: July 2009
Senior Member
Herb,

Comments below.

Herb Miller wrote:
> This may be a dumb question, but I am asking it because my boss wants
> the output of our model to be in XML instead of XMI. I do not know
> why? I thought that XMI already was an XML type file.
What does your boss think is the difference between an XMI file verses
an XML file? It presence of xmi:version="2.0" and
xmlns:xmi="http://www.omg.org/XMI" in the root element is the only
difference.
>
> I have taken a UML diagram from model to RCP stand-alone app using
> Eclipse. Of course the changes in the model are stored as XMI files
> when we run the app. Is there any way I can change this output to XML?
Well it definitely is XML already as you've observed.
> I know I could write a program to convert if necessary, but is there
> something along the path inside Eclipse from EMF model to RCP
> stand-alone where XML can be selected as the desired output format?
I think your boss might be confused. You should ask him some skill
testing questions about the different between XML and XMI. See if he
gives the same answer as above.
>
> It seems like I saw something once that said "Ecore to XML". Is that
> what Ecore to XML does?
>
It helps with migration when the serialization changes significantly
between versions of the same model.
>
> Thanks,
>


Ed Merks
Professional Support: https://www.macromodeling.com/
Previous Topic:Appropriate to use XMI for persistence?
Next Topic:Retrieve ItemProvider from EObject
Goto Forum:
  


Current Time: Wed Apr 24 23:26:10 GMT 2024

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

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

Back to the top