Skip to main content

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: 555
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 Damus is currently offline Christian DamusFriend
Messages: 1247
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: Tue Apr 20 14:41:42 GMT 2021

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

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

Back to the top