Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » Epsilon » XSD to EMF
XSD to EMF [message #580376] Tue, 08 September 2009 09:25 Go to next message
James Williams is currently offline James WilliamsFriend
Messages: 27
Registered: July 2009
Junior Member
Hi all,

I followed this tutorial ( http://help.eclipse.org/help33/index.jsp?topic=/org.eclipse. emf.doc/tutorials/xlibmod/xlibmod.html) to create an EMF model from an XSD. I didn't want a custom editor or anything so stopped after that.

I have my ecore file sitting happily in my project and I register the EPackage, which works fine. I then create an Epsilon EMF Model from the wizard, choosing my newly registered EPackage as the metamodel uri. The model file is created fine, and I can add the expected elements into the model. However, these elements do not persist once the file is closed and reopened - leaving just the root node and no child nodes.

Creating a model instance of a pre-registered metamodel (such as UML2) works fine. Is there possibly something wrong with the way the XSD is transformed. Maybe this should go into the EMF forum?

The XSD is here: http://czt.sourceforge.net/zml/zml/Z_2_1.xsd

Cheers,

James
Re: XSD to EMF [message #580398 is a reply to message #580376] Tue, 08 September 2009 10:25 Go to previous message
Dimitrios Kolovos is currently offline Dimitrios KolovosFriend
Messages: 1776
Registered: July 2009
Senior Member
Hi James,

This may be an issue related to Exeed. Could you please name your model
..xmi or .ecore and try to edit it with the built-in reflective editor
and let me know what happens?

Cheers,
Dimitris

James Williams wrote:
> Hi all,
>
> I followed this tutorial
> ( http://help.eclipse.org/help33/index.jsp?topic=/org.eclipse. emf.doc/tutorials/xlibmod/xlibmod.html)
> to create an EMF model from an XSD. I didn't want a custom editor or
> anything so stopped after that.
>
> I have my ecore file sitting happily in my project and I register the
> EPackage, which works fine. I then create an Epsilon EMF Model from the
> wizard, choosing my newly registered EPackage as the metamodel uri. The
> model file is created fine, and I can add the expected elements into the
> model. However, these elements do not persist once the file is closed
> and reopened - leaving just the root node and no child nodes.
>
> Creating a model instance of a pre-registered metamodel (such as UML2)
> works fine. Is there possibly something wrong with the way the XSD is
> transformed. Maybe this should go into the EMF forum?
>
> The XSD is here: http://czt.sourceforge.net/zml/zml/Z_2_1.xsd
>
> Cheers,
>
> James


--
Spread the word: http://www.eclipse.org/gmt/epsilon/spreadtheword
Follow Epsilon on Twitter: http://twitter.com/epsilonews
Previous Topic:EGL error?
Next Topic:EGL error?
Goto Forum:
  


Current Time: Wed Apr 24 17:10:05 GMT 2024

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

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

Back to the top