xml-rpc-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "John Wilson" <...@wilson.co.uk>
Subject Re: org.apache.xmlrpc.XmlWriter emits invalid XML
Date Mon, 19 Aug 2002 21:46:20 GMT

----- Original Message -----
From: "Adam Megacz" <adam@megacz.com>
To: <rpc-dev@xml.apache.org>
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


Mime
View raw message