Skip to main content

Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » TMF (Xtext) » generator providing simple XML output(Xtext generator - create simple (any) XML output)
generator providing simple XML output [message #702651] Tue, 26 July 2011 16:11 Go to next message
Michal S is currently offline Michal SFriend
Messages: 74
Registered: July 2011
I have succesfully defined my Xtext grammar and I also generated Eclipse application. I would like to make my generator writing just XML representation of my model in generated Eclipse application.
When I open my model in "Sample Reflective Ecore Model Editor" and I use "Save as" and I use filename "any.xml" - I am getting perfect output, which I would like to have as output of my generator. Is it possible to do this without writing function for every used element in MyModelGenerator.xtend?
Thank you for any help...
Re: generator providing simple XML output [message #702669 is a reply to message #702651] Tue, 26 July 2011 16:47 Go to previous message
Christian Dietrich is currently online Christian DietrichFriend
Messages: 13925
Registered: July 2009
Senior Member
Not for the Generator, but general ...

Need professional support for Xtext, Xpand, EMF?
Go to:
Twitter : @chrdietrich
Blog :

[Updated on: Tue, 26 July 2011 17:41]

Report message to a moderator

Previous Topic:Duplicated Type Error
Next Topic:[xtext2 xtend2] How to generate one file based on multiple models?
Goto Forum:

Current Time: Thu May 06 13:05:57 GMT 2021

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

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

Back to the top