HI!

I am using DOM. I can provide sample code to show this behavior and I can file 
a bug report for this, but I do not have the time to look at the code.

Regards,
Thomas

> -----Original Message-----
> From: Elena Litani [mailto:[EMAIL PROTECTED] 
> Sent: Dienstag, 23. Juli 2002 16:10
> To: [EMAIL PROTECTED]
> Subject: Re: XMLSerializer: Escaping of single quotes
> 
> 
> 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]
> 
> 

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to