Hi Thomas,
Thomas B�rkel wrote:
> The XMLSerializer escapes single quotes ('). Why? If I want to transfrom the
> string back into a Document object, un-escaped single quotes work pretty
> well. Escaping <, > and & is OK, but why '?
I believe this is done to avoid the problems in HTML (which Joe refers
to). Xerces includes HTML, XHTML and XML serializers -- all inherit from
BaseMarkupSerializer that actually has code for escaping characters.
In addition XMLSerializer uses the same method for printing attribute
values and element text content (I guess this is a reason it chooses to
escape both " and ').
I agree we need to change this behavior. Do you have time to look into
serializer code and to provide a patch?
Btw, do you use DOM or SAX?
Thx,
--
Elena Litani / IBM Toronto
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]