Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » EMF » Generating xml with emf
Generating xml with emf [message #419376] Wed, 21 May 2008 08:43 Go to next message
Eclipse UserFriend
Originally posted by: serhat.aydin.bte.mam.gov.tr

By using EMF project, I created a simple ecore model and run as eclipse
project.

This is the sample model code.

<?xml version="1.0" encoding="UTF-8"?>
<org.eclipse.example.library:Library xmi:version="2.0"
xmlns:xmi="http://www.omg.org/XMI"
xmlns:org.eclipse.example.library="http:///org/eclipse/example/library.ecore"
name="Skills Center">
<writers name="JRR Tolkien" books="//@books.0"/>
<books title="Fellowship of the Ring" pages="324"
category="SCIENCE_FICTION" author="//@writers.0"/>
</org.eclipse.example.library:Library>

I want to create an xml code from this model. Is it possible ?


Actually, i want to develop a user interface that automatically creates
an xml document by the user interaction on gui. Most of eclipse tools use
this type of user interfaces to generate xml-config files, is GEF and EMF
or (GMF) is the right choice for this purpose.

Thanks for helps..
Re: Generating xml with emf [message #419384 is a reply to message #419376] Wed, 21 May 2008 15:26 Go to previous messageGo to next message
Rene Ladan is currently offline Rene LadanFriend
Messages: 51
Registered: July 2009
Member
Serhat wrote:
> By using EMF project, I created a simple ecore model and run as eclipse
> project.
>
> This is the sample model code.
>
> <?xml version="1.0" encoding="UTF-8"?>
> <org.eclipse.example.library:Library xmi:version="2.0"
> xmlns:xmi="http://www.omg.org/XMI"
> xmlns:org.eclipse.example.library="http:///org/eclipse/example/library.ecore"
> name="Skills Center">
> <writers name="JRR Tolkien" books="//@books.0"/>
> <books title="Fellowship of the Ring" pages="324"
> category="SCIENCE_FICTION" author="//@writers.0"/>
> </org.eclipse.example.library:Library>
>
> I want to create an xml code from this model. Is it possible ?
>
This model _is_ already in xml format, indicated by its first line.
>
> Actually, i want to develop a user interface that automatically creates
> an xml document by the user interaction on gui. Most of eclipse tools
> use this type of user interfaces to generate xml-config files, is GEF
> and EMF or (GMF) is the right choice for this purpose.
>
It should be possible with GMF (which glues EMF and GEF together). See
http://wiki.eclipse.org/index.php/GMF_Tutorial for a tutorial.

Rene
Re: Generating xml with emf [message #419425 is a reply to message #419384] Thu, 22 May 2008 11:02 Go to previous message
Eclipse UserFriend
Originally posted by: serhat.aydin.bte.mam.gov.tr

Thanks,
GMF best fits my requirements..
Previous Topic:Default menues for an RCP
Next Topic:Sharing EMF instances across an application?
Goto Forum:
  


Current Time: Sat Apr 27 04:15:42 GMT 2024

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

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

Back to the top