|
Re: Unable to get the ecore namespace and schema [message #416902 is a reply to message #416768] |
Tue, 19 February 2008 19:24 |
David Steinberg 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
>
>
|
|
|
Powered by
FUDForum. Page generated in 0.03408 seconds