Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Archived » XML Schema Definition (XSD) » xmi Models
xmi Models [message #516005] Mon, 22 February 2010 13:15 Go to next message
shekoufeh Mising name is currently offline shekoufeh Mising nameFriend
Messages: 26
Registered: July 2009
Junior Member
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 Go to previous messageGo to next message
Ed Merks is currently offline Ed MerksFriend
Messages: 33141
Registered: July 2009
Senior Member
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


Ed Merks
Professional Support: https://www.macromodeling.com/
Re: xmi Models [message #516058 is a reply to message #516036] Mon, 22 February 2010 15:53 Go to previous messageGo to next message
shekoufeh Mising name is currently offline shekoufeh Mising nameFriend
Messages: 26
Registered: July 2009
Junior Member
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 #516095 is a reply to message #516058] Mon, 22 February 2010 18:24 Go to previous messageGo to next message
Ed Merks is currently offline Ed MerksFriend
Messages: 33141
Registered: July 2009
Senior Member
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


Ed Merks
Professional Support: https://www.macromodeling.com/
Re: xmi Models [message #517204 is a reply to message #516095] Fri, 26 February 2010 15:26 Go to previous messageGo to next message
shekoufeh Mising name is currently offline shekoufeh Mising nameFriend
Messages: 26
Registered: July 2009
Junior Member

Yes You are right the nsURL was null !!!

Many thanks,
SH
Re: xmi Models [message #604479 is a reply to message #516036] Mon, 22 February 2010 15:53 Go to previous messageGo to next message
shekoufeh Mising name is currently offline shekoufeh Mising nameFriend
Messages: 26
Registered: July 2009
Junior Member
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 Go to previous messageGo to next message
Ed Merks is currently offline Ed MerksFriend
Messages: 33141
Registered: July 2009
Senior Member
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


Ed Merks
Professional Support: https://www.macromodeling.com/
Re: xmi Models [message #604487 is a reply to message #516095] Fri, 26 February 2010 15:26 Go to previous message
shekoufeh Mising name is currently offline shekoufeh Mising nameFriend
Messages: 26
Registered: July 2009
Junior Member
Yes You are right the nsURL was null !!!

Many thanks,
SH
Previous Topic:xmi Models
Next Topic:Trace in Medini QVT
Goto Forum:
  


Current Time: Thu Apr 25 17:06:37 GMT 2024

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

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

Back to the top