Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » EMF » Is it possible to maintain external entity references when saving ecore model?
Is it possible to maintain external entity references when saving ecore model? [message #959472] Fri, 26 October 2012 18:51 Go to next message
Daniel Roman is currently offline Daniel RomanFriend
Messages: 1
Registered: October 2012
Junior Member
Hello,

I have an XML file which is being loaded to create an EMF Model. This XML File contains External Entity References to other .xml files. I would like to keep these entity references when exporting/saving the model from EMF back into a .XML file. Right now, the resulting .XML file includes the contents of the files that were referenced via the !Entity. Is there a way to force the XMLSaveImpl to not flatten the file during the save process?

Thanks,

Daniel
Re: Is it possible to maintain external entity references when saving ecore model? [message #960083 is a reply to message #959472] Sat, 27 October 2012 06:44 Go to previous message
Ed Merks is currently offline Ed MerksFriend
Messages: 26237
Registered: July 2009
Senior Member
Daniel,

No, this information is not recorded in the model and is relatively
transparent when processing the SAX events.


On 26/10/2012 9:12 PM, Daniel Roman wrote:
> Hello,
>
> I have an XML file which is being loaded to create an EMF Model. This
> XML File contains External Entity References to other .xml files. I
> would like to keep these entity references when exporting/saving the
> model from EMF back into a .XML file. Right now, the resulting .XML
> file includes the contents of the files that were referenced via the
> !Entity. Is there a way to force the XMLSaveImpl to not flatten the
> file during the save process?
>
> Thanks,
>
> Daniel
Previous Topic:Ecore 2 Ecore - Could use some input
Next Topic:[CDO] CDO Model Repository Test dependency issue
Goto Forum:
  


Current Time: Fri Nov 28 18:34:46 GMT 2014

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

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