[
Date Prev][
Date Next][
Thread Prev][
Thread Next][
Date Index][
Thread Index]
[
List Home]
Re: [eclipselink-users] [MOXy] escaping special characters in Strings
|
Hi Polly,
The following is my current understanding. According to section 2.4
from the XML specification (http://www.w3.org/TR/REC-xml/), less-than
(<) and ampersand (&) must always be escaped. greater-than need only be
escaped when it follows ]] and is not marking the end of a CData
section. The single-quote need only be escaped when the attribute value
is surrounded in single-quotes, since EclipseLink always surrounds
attribute values in double-quote (") the escaping isn't necessary. Are
you seeing any errors with the current configuration?
-Blaise
polly.c.chang wrote:
Hi Blaise,
We checked the nightly build for June 8 and validated that the double-quotes
character is being escaped.
However, is there a reason that EclipseLink does not escape the single-quote
and the greater-than characters? These can also cause XML validation
errors, right? It seems like it would be safest if these characters are
escaped also. Please let me know if I'm missing something.
Thanks,
Polly
Blaise Doughan wrote:
Hi Polly,
Yes that is the correct download site, the fix you need is in the June
8th version of EclipseLink 1.1.4.
-Blaise