You are viewing a plain text version of this content. The canonical link for it is here.
Posted to j-dev@xerces.apache.org by bu...@apache.org on 2003/10/14 05:17:09 UTC

DO NOT REPLY [Bug 23797] - XMLSerializer doesn't escape ' character to &apos

DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://nagoya.apache.org/bugzilla/show_bug.cgi?id=23797>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=23797

XMLSerializer doesn't escape ' character to &apos

mrglavas@apache.org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|                            |INVALID



------- Additional Comments From mrglavas@apache.org  2003-10-14 03:17 -------
The reason XMLSerializer doesn't escape the ' (apostrophe or single quote) 
character is that it never needs to be escaped. The only necessary reason to 
escape a single quote is if you've quoted an attribute value [1] or entity 
value [2] with single quotes. The serializer always uses double quotes (") so 
escaping is not necessary.

[1] http://www.w3.org/TR/REC-xml#NT-AttValue
[2] http://www.w3.org/TR/REC-xml#NT-EntityValue

---------------------------------------------------------------------
To unsubscribe, e-mail: xerces-j-dev-unsubscribe@xml.apache.org
For additional commands, e-mail: xerces-j-dev-help@xml.apache.org