Skip to main content

Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » XML Schema Definition (XSD) » Dynamic Instance of XSD.ecore
Dynamic Instance of XSD.ecore [message #603202] Tue, 05 August 2008 08:56
Tim Brömme is currently offline Tim BrömmeFriend
Messages: 19
Registered: July 2009
Junior Member

I was just trying to use the EMF feature to create dynamic instances of
an ecore file (right click on elment in ecore file -> create dynamic
If u use this feature on the root element of your model, you are able to
an instance of your metamodel without generating an editor.
as I said, I tried this with the XSD.ecore file, but there seems to be a

These are my steps:

1. Open XSD.ecore with "Sample Ecore Model Editor"
2. Right Click on "XSD Schema -> XSD Scope"
3. "Create Dynamic Instance"
4. Open resulting file with "Sample Reflective Ecore Model Editor"
5. Right Click on "XSD Schmema" -> "new Child" -> "Contents XSD Element
6. Save Model, Close File
7. Open File again -> Several Errors raise ("Value #null is not legal")

These same steps I do with other *.ecore files and it works perfectly.
Most of these are handmade by me / us at TU Berlin, the XSD.ecore is one
of the few which came from "outside".
The first guess is, that "XSD Schema" is not the root element of the XSD
Metamodel, but I have no idea which other element could be the root.
Maybe the problem is somewhere else. Do you have an idea ?

Thanks in adavance,
Previous Topic:XML and XSD models from string
Next Topic:XSD to Ecore order attributes
Goto Forum:

Current Time: Wed Jun 20 17:30:46 GMT 2018

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

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

Back to the top