You are viewing a plain text version of this content. The canonical link for it is here.
Posted to log4j-dev@logging.apache.org by bu...@apache.org on 2006/08/31 23:03:53 UTC
DO NOT REPLY [Bug 37560] - Does not handle embedded xml correctly
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG�
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=37560>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND�
INSERTED IN THE BUG DATABASE.
http://issues.apache.org/bugzilla/show_bug.cgi?id=37560
carnold@apache.org changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |ASSIGNED
Component|chainsaw |Layout
------- Additional Comments From carnold@apache.org 2006-08-31 21:03 -------
Not Chainsaw's fault. The serializer (I assume that log4j's XMLLayout) used to write the sample document
is naive and just dropped the NDC content into a CDATA section. Unfortunately, the termination of the
CDATA section within the NDC content (the ]]>) prematurely ended the CDATA section added by the
serialization. You can't nest CDATA sections.
Solutions would be to use a real XML serializer (like that provided by Xerces) or to make the log4j
serializer smarter and not depend on CDATA sections (that is, it would convert <, > and & to <, > and
& and likely convert characters with code points greater than 127 to &#NNN;
--
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
---------------------------------------------------------------------
To unsubscribe, e-mail: log4j-dev-unsubscribe@logging.apache.org
For additional commands, e-mail: log4j-dev-help@logging.apache.org