----- Original Message -----
From: "John Thorhauer" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Tuesday, March 05, 2002 9:26 PM
Subject: user of cdata


> Hi,
>
> I am trying to transfer an XML doc using xmlrpc and my doc has a section
> with CDATA in it.  Does the server know how to handle this?  I am
> currently getting an error like the following in the XmlRpcClient.:
>
>  The character sequence "]]>" must not appear in content unless used to
> mark the end of a CDATA section.

John,

what version of the XML-RPC system are you using and what XML parser?

There has been a bug caused by the apache XML-RPC system not escaping the >
when ]]> appears in a in a <string>. MinML doesn't object (strictly - this
is a bug in MinML). Xerces objects.

This was fixed in October last year:


"hannes      01/10/29 09:07:05

  Modified:    src/java/org/apache/xmlrpc XmlRpc.java
  Log:
  Encode '>' as &gt; in chardata() method of XmlWriter.
  This is necessary if the chardata contains "]]>" (reported
  by John Wilson)."

John Wilson
The Wilson Partnership
http://www.wilson.co.uk

Reply via email to