Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » EMF » Unable to get the ecore namespace and schema
Unable to get the ecore namespace and schema [message #416768] Mon, 18 February 2008 11:37 Go to next message
Debasis Mishra is currently offline Debasis MishraFriend
Messages: 36
Registered: July 2009
Member
Hi All,
An ecore file contains the namespace of the ecore
i,e-http://www.eclipse.org/emf/2002/Ecore but the schema location is not
mentioned.

But this name space URL is giving FileNotFound error.Actually i want to go
through the ecore schema .

could anybody please help me in getting the ecore schema location.



Thanks in advance
Debasis
Re: Unable to get the ecore namespace and schema [message #416902 is a reply to message #416768] Tue, 19 February 2008 19:24 Go to previous message
David Steinberg is currently offline David SteinbergFriend
Messages: 489
Registered: July 2009
Senior Member
Hi Debasis,

Sorry, but I'm having trouble understanding your question, so I'm not
sure if my response will actually answer it.

You can add a schemaLocation attribute when saving a file by using the
XMLResource.OPTION_SCHEMA_LOCATION option. You should make sure that the
EPackage representing your model is in a resource in your resource set.
The URI of that resource will be used in the resulting schemaLocation
(deresolved against the URI of the resource you're saving, if both are
absolute).

You shouldn't need to worry about a schema location for the Ecore
metamodel, itself. It's always initialized automatically by EMF and
registered in the global package registry, so it can be found directly
from its namespace URI.

Hope this helps.

Cheers,
Dave


Debasis wrote:
> Hi All,
> An ecore file contains the namespace of the ecore
> i,e-http://www.eclipse.org/emf/2002/Ecore but the schema location is
> not mentioned.
>
> But this name space URL is giving FileNotFound error.Actually i want to
> go through the ecore schema .
>
> could anybody please help me in getting the ecore schema location.
>
>
>
> Thanks in advance
> Debasis
>
>
Previous Topic:new jmerger and annotations?
Next Topic:Metamodel for ecoremodel
Goto Forum:
  


Current Time: Thu Apr 25 23:43:58 GMT 2024

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

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

Back to the top