Re: '

Richard Kunze <[email protected]>
Newsgroups gmane.comp.java.enhydra.xmlc
Organization Tivano Software GmbH
Message-ID <[email protected]>
On Monday 07 April 2003 17:41, Jacob Kjome wrote:
> I'm actually not sure why XMLC would bother changing single quotes to
> &apos; 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, [email protected]
signature.asc (application/pgp-signature, 189 B)
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.1 (GNU/Linux)

iD8DBQA+kaGV86Aqb3OZfF4RAt81AJ41KN4GoV848GTJOm1q770zTIFujACfQZ9P
hmVijBe72H6nE8VSRM1s/7o=
=dpZx
-----END PGP SIGNATURE-----
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.