users@jaxb.java.net

Re: JAXB escaping apostrophe (Single Quote)

From: Wolfgang Laun <wolfgang.laun_at_gmail.com>
Date: Wed, 7 Apr 2010 07:34:47 +0200

On Tue, Apr 6, 2010 at 9:52 PM, Ely Schoenfeld <ely.sun.1_at_mitalteli.com>wrote:

> First of all: Thank you two for taking the time to respond to my help
> request.
>
> Gary Gregory escribió:
>

I see your point. I do agree with the needlessness and wastefulness of
> options 3 and 4.
>
> Good.


> My problem is that I don't think I'll ever be able to convince any Mexican
> Government agency about that. But I can try. I will look for someone who
> address a letter to, and maybe accept Wolfgang's offering about using his
> W3C contact to help me writing the letter.
>
> By all means, and preferably before you try to do anything else.


> In the mean time: Any ideas about how to obtain an & apos; in the output
> XML?
>
>
Don't invent complicated techniques. Simply use a sed script with
s/'/&apos;/g
This will replace them anywhere, which is OK, since JAXB's serializer will
not use it for quoting attributes.

-W