users@jaxb.java.net

RE: JAXB escaping apostrophe (Single Quote)

From: Gary Gregory <GGregory_at_seagullsoftware.com>
Date: Wed, 7 Apr 2010 06:31:40 +0000

My surfer Spanish is too primitive to help here but I would really make 100% sure that you are not handcuffing yourself here ;) Can someone confirm your reading of the docs?

Gary Gregory
Senior Software Engineer
Seagull Software
email: ggregory_at_seagullsoftware.com
email: ggregory_at_apache.org
www.seagullsoftware.com


From: Wolfgang Laun [mailto:wolfgang.laun_at_gmail.com]
Sent: Tuesday, April 06, 2010 22:35
To: users_at_jaxb.dev.java.net
Subject: Re: JAXB escaping apostrophe (Single Quote)

On Tue, Apr 6, 2010 at 9:52 PM, Ely Schoenfeld <ely.sun.1_at_mitalteli.com<mailto: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