Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » GMF (Graphical Modeling Framework) » Generating an XML file based on the model
Generating an XML file based on the model [message #235118] Thu, 02 July 2009 12:49 Go to next message
Scholle  is currently offline Scholle Friend
Messages: 11
Registered: July 2009
Junior Member
Hello,

I have created a graphical modeling tool using GMF. I now want to create
an XML file of the model a user can create.

I thought the best way is to access the internal structure that stores the
current model, iterating over it and build an XML file...

I couldn't find any information regarding how one can access this
structure... I guess its located in the *.diagram.application package?
...isn't it?

I would be glad if anybody could get a hint... or, is there another way to
generate an XML file based on the model?

Scholle
Re: Generating an XML file based on the model [message #235126 is a reply to message #235118] Thu, 02 July 2009 13:44 Go to previous message
Alexander Shatalin is currently offline Alexander ShatalinFriend
Messages: 2928
Registered: July 2009
Senior Member
Hello Scholle,

You can load diagram/domain model files using EMF Resources API and brows
contents as EMF-generated domain model API/diagram (notation model) one.

> I would be glad if anybody could get a hint... or, is there another
> way to generate an XML file based on the model?
You can initialize domain model using XSD document for this XMl format -
as a result domain model file will be stored in accordance with this XSD
(you can generate diagram editor editing this XML document, so you don't
need to transform data to this XML format afterwards).

-----------------
Alex Shatalin
Previous Topic:Aggregation of components
Next Topic:"Invalid view - remove from diagram" on diagrams created with older GMF opened in latest G
Goto Forum:
  


Current Time: Mon Mar 08 17:15:22 GMT 2021

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

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

Back to the top