logo       

Re: ': msg#00022

java.enhydra.xmlc

Subject: Re: '

On Monday 07 April 2003 17:41, Jacob Kjome wrote:
> I'm actually not sure why XMLC would bother changing single quotes to
> ' since single quotes aren't special characters in XML?

Single (and double) quotes aren't special characters per se, but they can
cause problems inside of attribute values if they are not escaped. For
example, consider setting "someAttribute" dynamically to 'quote: "here we
go"'. If quotes were not escaped, you'd get markup along the lines of

<sometag someAttribute="quote: "here we go"" />

which is definitely *not* valid. That's why XMLC escapes quotes by default.

--
Richard Kunze

[ t]ivano Software, Bahnhofstr. 18, 63263 Neu-Isenburg
Tel.: +49 6102 80 99 07 - 0, Fax.: +49 6102 80 99 07 - 1
http://www.tivano.de, kunze@xxxxxxxxx

Attachment: pgpb7KnTSZP9B.pgp
Description: signature

<Prev in Thread] Current Thread [Next in Thread>
Google Custom Search

News | FAQ | advertise