Which version of xerces are you using? I think 2.4.0 doesn't do this 
except in attributes (where I think the spec requires it, since attributes can 
be surrounded by single quotes).

Chris


-----Original Message-----
From: Karr, David [mailto:[EMAIL PROTECTED]
Sent: Thursday, June 19, 2003 4:59 PM
To: [EMAIL PROTECTED]
Subject: Best way to make XMLSerializer not encode single quotes


I've discovered the interesting issue with taking body content that
contains single quotes and serializing that into an XML document, which
is actually intended to be viewed as HTML.  The result is that it mucks
up (replaces with "'") the single quotes when it is viewed in IE
(although not in Mozilla, interestingly).

I have code which is currently using the XMLSerializer class.  What is
the best way to resolve this issue?  I noticed the
"setNonEscapingElements()" method, but that's sort of brutal.  I still
want it to encode "<" characters, but not "'" characters.  Should I be
using a different serializer?


---------------------------------------------------------------------
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