----- 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] | [#xE000-#xFFFD] |
>                [#x10000-#x10FFFF]
>
>   http://www.w3.org/TR/2000/REC-xml-20001006#charsets
>
> XmlWriter fails to &#XXXX;-encode characters below 0x20, and emits XML
> which is unparseable by most XML parsers.
>
> The following patch fixes this bug.

Unfortunately this doesn't fix the problem.

These characters are not allowed even if they are encoded as &#XXXX;

The only correct behaviour is to refuse to handle data containing these
characters.

The production you quote is applied after any numeric character reference is
converted into a character.

http://www.xml.com/axml/axml.html

Reply via email to