Skip to main content

Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » M2T (model-to-text transformation) » How to read model of any metamodel in Acceleo?
How to read model of any metamodel in Acceleo? [message #1832093] Tue, 08 September 2020 17:33 Go to next message
Fatima Rani is currently offline Fatima RaniFriend
Messages: 22
Registered: April 2020
Junior Member

i want to read model of the meta-model in acceleo , what should i provide here?

for example model is:

<?xml version="1.0" encoding="UTF-8"?>
<World xmi:version="2.0" xmlns:xmi="" xmlns="friends">
<people name="Lea" friendOf="//@people.1 //@people.3"/>
<people name="Lissette"/>
<people name="John"/>
<people name="Fatima" friendOf="//@people.1" enemyOf="//@people.2"/>

i want to parse between different node , ref etc

  • Attachment: acc.png
    (Size: 221.22KB, Downloaded 133 times)
Re: How to read model of any metamodel in Acceleo? [message #1832149 is a reply to message #1832093] Thu, 10 September 2020 07:54 Go to previous message
Ed Willink is currently offline Ed WillinkFriend
Messages: 7663
Registered: July 2009
Senior Member

You use of metamodel and model is vague.

If you want to use access the metamodel of the model you have provided, you can't since you have an ill-formed model. If you attempt to open it in the Sample Ecore Model Editor you get multiple errors
because xmlns="friends" is not a reference to a registered model, unlike xmlns:xmi="" and becuase there is no associated xsi:schemaLocation to map "friends" to e.g. Friends.ecore.


Ed Willink

Previous Topic:Acceleo
Next Topic:Acceleo build
Goto Forum:

Current Time: Sun Jun 23 11:31:24 GMT 2024

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

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

Back to the top