Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » EMF » XML processing instruction with EMF 2.2
XML processing instruction with EMF 2.2 [message #830107] Tue, 27 March 2012 07:46 Go to next message
Nicholas Karwath is currently offline Nicholas KarwathFriend
Messages: 11
Registered: July 2009
Junior Member
I need to handle XML processing instructions with pretty old EMF 2.2. Is there any (convenience) way to do that?
Re: XML processing instruction with EMF 2.2 [message #830227 is a reply to message #830107] Tue, 27 March 2012 10:58 Go to previous messageGo to next message
Ed Merks is currently offline Ed MerksFriend
Messages: 33141
Registered: July 2009
Senior Member
Nicholas,

Processing instructions can only be recorded if they occur in an element
with a complex type with mixed content.

On 27/03/2012 3:46 AM, Nicholas Karwath wrote:
> I need to handle XML processing instructions with pretty old EMF 2.2.
> Is there any (convenience) way to do that?


Ed Merks
Professional Support: https://www.macromodeling.com/
Re: XML processing instruction with EMF 2.2 [message #830281 is a reply to message #830227] Tue, 27 March 2012 12:31 Go to previous messageGo to next message
Nicholas Karwath is currently offline Nicholas KarwathFriend
Messages: 11
Registered: July 2009
Junior Member
Thanks, Ed. Unfortunately i cannot change the model anymore. Time to switch to a recent version of EMF, it seems things are pretty easier with that. Or is there a need to change the model even with a recent version?
Re: XML processing instruction with EMF 2.2 [message #830521 is a reply to message #830281] Tue, 27 March 2012 18:42 Go to previous message
Ed Merks is currently offline Ed MerksFriend
Messages: 33141
Registered: July 2009
Senior Member
Nicholas,

Comments below.

On 27/03/2012 8:31 AM, Nicholas Karwath wrote:
> Thanks, Ed. Unfortunately i cannot change the model anymore.
If you want recorded processing instructions, it must be an EClass with
a mixed content feature. If you don't have that, you're out of luck.
> Time to switch to a recent version of EMF, it seems things are pretty
> easier with that.
Yes, your version is very old.
> Or is there a need to change the model even with a recent version?
No you existing model will just continue to work. But the need for
mixed content in which to record processing instructions remains the same.


Ed Merks
Professional Support: https://www.macromodeling.com/
Previous Topic:How to change the default dirty mechanism of properties view.?
Next Topic:[EMF/Databinding] xsd:choice attribute
Goto Forum:
  


Current Time: Fri Apr 26 01:04:11 GMT 2024

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

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

Back to the top