Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » EMF » storing html values in xmi
storing html values in xmi [message #1695304] Wed, 13 May 2015 12:35 Go to next message
Flavio Donze is currently offline Flavio DonzeFriend
Messages: 211
Registered: July 2009
Location: Switzerland
Senior Member
Hello

I just noticed that if I store an EMF model as xmi, html values are store in a strange way.

<a>TEST</a>
results in:
&lt;a>TEST&lt;/a>
I would expect something like:
&lt;a&gt;TEST&lt;/a&gt;

Is this on purpose or could it be a bug?

greets
Flavio


Prozessmanagement und Qualit├Ątsmanagement Software QMS/IMS
https://www.scodi.ch

[Updated on: Wed, 13 May 2015 12:36]

Report message to a moderator

Re: EMF html values [message #1695308 is a reply to message #1695304] Wed, 13 May 2015 12:49 Go to previous messageGo to next message
Ed Merks is currently offline Ed MerksFriend
Messages: 30353
Registered: July 2009
Senior Member
Flavio,

Oddly when I look at your post in Thunderbird, I see all three things
looking exactly the same. In any case, there's no such thing as an
HTML value. There are only strings and if they contain characters that
are special for XML, those characters are encoded as entities. So as
long as the string value you started with in Java is the same as the
string value you see after loading it in Java, it's not a bug.


On 13/05/2015 2:35 PM, Flavio Donze wrote:
> Hello
>
> I just noticed that if I store an EMF model as xmi, html values are
> store in a strange way.
>
> <a>TEST</a>
> results in:
> <a>TEST</a>
> I would expect something like:
> <a>TEST</a>
>
> Is this on purpose or could it be a bug?
>
> greets
> Flavio
Re: EMF html values [message #1695310 is a reply to message #1695308] Wed, 13 May 2015 12:57 Go to previous message
Flavio Donze is currently offline Flavio DonzeFriend
Messages: 211
Registered: July 2009
Location: Switzerland
Senior Member
Hi Ed

Thanks for your reply.
Yes the string value is the same after loading, just wanted to make sure, since ">" is also a XML special character.


Prozessmanagement und Qualit├Ątsmanagement Software QMS/IMS
https://www.scodi.ch
Previous Topic:[Xcore] Adding new super class to all classes in an EMF model
Next Topic:GenModel fails on some ECore types
Goto Forum:
  


Current Time: Tue Aug 20 13:46:20 GMT 2019

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

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

Back to the top