Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » Model-to-Model Transformation » ATL : target model
ATL : target model [message #1759353] Mon, 10 April 2017 20:05 Go to next message
im hello world is currently offline im hello worldFriend
Messages: 44
Registered: February 2017
Member
Hi,
please has anyone an idea how can I get in my output file(.xmi) my 'text' like this:
<myTag> text </myTag>
and not like this <myTag value="text"/>

Can i obtain it with my ATL file, or is it through the ecore file (a particular type for example)
thank you.
Re: ATL : target model [message #1759395 is a reply to message #1759353] Tue, 11 April 2017 08:20 Go to previous messageGo to next message
Ed Willink is currently offline Ed WillinkFriend
Messages: 6078
Registered: July 2009
Senior Member
Hi

Resource.save takes an options map keyed by values from XMLResource and similar classes. One of the options probably does what you need. The EMF book probably explains what to do.

Since you are just changing from one valid XML to another valid XML serialization, you should question whether it is really worth the customization.

Regards

Ed Willink
Re: ATL : target model [message #1759671 is a reply to message #1759395] Fri, 14 April 2017 21:54 Go to previous message
im hello world is currently offline im hello worldFriend
Messages: 44
Registered: February 2017
Member
Hi,
thank you for the reply.
Yes it really worth the customization, because i need it like this format in my output file.
So, as i understand, there is no way to do it with ATL(in the .atl file specifically) ?

[Updated on: Sat, 15 April 2017 02:52]

Report message to a moderator

Previous Topic:widely used model transformation languages
Next Topic:[ATL] Ask for help problem rule atl beginnner level
Goto Forum:
  


Current Time: Fri Oct 19 15:04:18 GMT 2018

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

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

Back to the top