Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » EMF » Special character in String
Special character in String [message #1770663] Tue, 15 August 2017 20:31 Go to next message
Alex Kravets is currently offline Alex KravetsFriend
Messages: 526
Registered: November 2009
Senior Member
An attribute in my model allows for user to input special character such as '&'. However, when model is saved, ampersand is encoded into & How can I prevent the encoding?
Re: Special character in String [message #1770667 is a reply to message #1770663] Wed, 16 August 2017 01:32 Go to previous message
Christian W. Damus is currently offline Christian W. DamusFriend
Messages: 1166
Registered: July 2009
Location: Canada
Senior Member


The encoding is necessary to ensure that your XML document is valid because the ampersand is reserved for XML entities. The & entity is one of a very few predefined entities that all XML processors are required to recognise.

What problem does this encoding present in your app?

Previous Topic:Derived unions and subsetted properties in UML to Ecore converter
Next Topic:How to strip invalid XML characters when saving Resource
Goto Forum:

Current Time: Sat Mar 17 18:39:37 GMT 2018

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

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