Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » M2T (model-to-text transformation) » XML input to ecore
XML input to ecore [message #873428] Fri, 18 May 2012 04:05 Go to previous message
Kosala Yapa is currently offline Kosala Yapa
Messages: 132
Registered: September 2010
Senior Member
Hi there,
The input for the source model(ecore) is xml and output from the target model(ecore) is xmi. Transformation is written in ATL.

Source: XML->ecore model
Transformation: ATL
Target: ecore ->xmi

Step1) I have xml input file(data.xml):

<?xml version="1.0"?>
<DeviceItem
Name="ppp1"
IsSelected="false"

<ModuleList>
<ModuleItem
Name="m1"
IsSelected="false"
ModuleReference="Rm1">
</ModuleItem>
<ModuleItem
Name="m2"
IsSelected="false"
ModuleReference="Rm2">
</ModuleItem>
<ModuleItem
Name="m3"
IsSelected="false"
ModuleReference="Rm3">
</ModuleItem>
<ModuleItem
Name="m4"
IsSelected="false"
ModuleReference="Rm4">
</ModuleItem>
</ModuleList>

</DeviceItem>

Step2) I created XML schema for this input file and then created ecore model using eclipse EMF project(source model).

Step3)I created another ecore model(target model) and wrote the transformation in ATL.


Error: Error loading data.xml: org.eclipse.emf.ecore.xmi.PackageNotFoundException: Package with uri 'null' not found.

Can someone find/hint how to solve this issue?

Thanks in advance
Kosala
 
Read Message
Read Message
Previous Topic:Example Hello World - Acceleo - M2T
Next Topic:[Acceleo]I don't want to chang the timestamp when the content is not changed
Goto Forum:
  


Current Time: Sun May 19 18:32:25 EDT 2013

Powered by FUDForum. Page generated in 0.04278 seconds