Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » EMF "Technology" (Ecore Tools, EMFatic, etc)  » Empty line on generated ecore file
Empty line on generated ecore file [message #997419] Mon, 07 January 2013 07:17 Go to previous message
Emanuele Gesuato is currently offline Emanuele Gesuato
Messages: 9
Registered: December 2012
Junior Member
Hi there,

we are having a strange behaviour when ecore file is generated: the top line is empty and xml validation gets failed. In attachment you can find our ecore file that we are trying to generate.

I tried to debug in your code and found that when it is using "ecorefile.xpt" the statement "«this.ecoreFileContent»" is surrounded by two TextStatement: '\n' and '\n'.
The first one is the one that generates the empty line but it has its property "deleteLine" set to true but this attribute is never evaluated so the '\n' is generated.

The strange thing that we are using an our "ecorefile.xpt" but our file and yours are identical: if I try to delete our file the generation runs fine without the empty line. But I don't understand what's wrong. What encoding are you using to save xpt file ? UTF-8 ?

Thanks for any help,
Emanuele
 
Read Message
Read Message
Previous Topic:[EEF] EObjects with different alternative views ?
Next Topic:Texo - ECore reference to another ECore using archive:
Goto Forum:
  


Current Time: Thu May 23 07:00:45 EDT 2013

Powered by FUDForum. Page generated in 0.01583 seconds