xmi Models [message #516005] |
Mon, 22 February 2010 13:15  |
Eclipse User |
|
|
|
I am trying to do transformation in QVT.
I have been creating my ecore metamodels and tried to generate dynamic instance of them, the instance is not readable.
when I open it by text edittor the schemalocation is like "null ../metamodels/Node.ecore"
I remove null .. and add platform:/resource/metamodels/Node.ecore
but still not working
Do u have any idea how should I encounter with this problem
Many thanks,
SH
|
|
|
Re: xmi Models [message #516036 is a reply to message #516005] |
Mon, 22 February 2010 14:54   |
Eclipse User |
|
|
|
SH,
Does your EPackage have a non-null nsURI? That first value should be
the namespace of the model. If you right click on the EClass in the
Sample Ecore Editor and invoke "Create Dynamic Instance" you should get
something that works. I'm not sure how you're creating what you
describe below.
shekoufeh wrote:
> I am trying to do transformation in QVT.
>
> I have been creating my ecore metamodels and tried to generate dynamic
> instance of them, the instance is not readable.
>
> when I open it by text edittor the schemalocation is like "null
> ../metamodels/Node.ecore"
>
> I remove null .. and add platform:/resource/metamodels/Node.ecore
> but still not working
>
> Do u have any idea how should I encounter with this problem
>
> Many thanks,
> SH
|
|
|
|
Re: xmi Models [message #516095 is a reply to message #516058] |
Mon, 22 February 2010 18:24   |
Eclipse User |
|
|
|
SH,
You didn't answer my question about the nsURI of EPackage. It sounds
like the nsURI is null, which is invalid. Be sure to invoke
"Validate..." on your EPackage to find all the problems.
shekoufeh wrote:
> Many thanks for the reply,
>
> Here is what is shown in my model
>
> <?xml version="1.0" encoding="ASCII"?>
> <TMM1 xmi:version="2.0"
> xmlns:xmi="http://www.omg.org/XMI"
> xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
> xsi:schemaLocation="null ../metamodels/Tree.ecore"/>
>
> I also generate the models by using ecore and generating dynamic
> instance.
>
> sh
|
|
|
|
|
Re: xmi Models [message #604483 is a reply to message #604479] |
Mon, 22 February 2010 18:24   |
Eclipse User |
|
|
|
SH,
You didn't answer my question about the nsURI of EPackage. It sounds
like the nsURI is null, which is invalid. Be sure to invoke
"Validate..." on your EPackage to find all the problems.
shekoufeh wrote:
> Many thanks for the reply,
>
> Here is what is shown in my model
>
> <?xml version="1.0" encoding="ASCII"?>
> <TMM1 xmi:version="2.0"
> xmlns:xmi="http://www.omg.org/XMI"
> xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
> xsi:schemaLocation="null ../metamodels/Tree.ecore"/>
>
> I also generate the models by using ecore and generating dynamic
> instance.
>
> sh
|
|
|
|
Powered by
FUDForum. Page generated in 0.25913 seconds