- Original Message -
From: Adam Megacz [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Sunday, August 18, 2002 1:54 AM
Subject: org.apache.xmlrpc.XmlWriter emits invalid XML
According to XML 1.0, a CDATA section may contain only:
[2] Char ::= #x9 | #xA | #xD | [#x20-#xD7FF
These characters are not allowed even if they are encoded as #;
The only correct behaviour is to refuse to handle data containing these
characters.
So rather than entity encoding the characters, an XmlRpcException of
some sort should be thrown?
Ah, the joys of the
According to XML 1.0, a CDATA section may contain only:
[2] Char ::= #x9 | #xA | #xD | [#x20-#xD7FF] | [#xE000-#xFFFD] |
[#x1-#x10]
http://www.w3.org/TR/2000/REC-xml-20001006#charsets
XmlWriter fails to #;-encode characters below 0x20, and emits XML
which is