Skip to main content



      Home
Home » Modeling » EMF » Special character in String
Special character in String [message #1770663] Tue, 15 August 2017 16:31 Go to next message
Eclipse UserFriend
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] Tue, 15 August 2017 21:32 Go to previous message
Eclipse UserFriend
Hi,

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?

HTH,
Christian
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: Wed Jul 16 14:41:32 EDT 2025

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

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

Back to the top