You are viewing a plain text version of this content. The canonical link for it is here.
Posted to rpc-dev@xml.apache.org by John Thorhauer <jo...@zenplex.com> on 2002/03/05 22:26:08 UTC

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.

Thanks,
John
-- 
********************************
** John Thorhauer
** john@zenplex.com
** take a look at:
**  http://tambora.zenplex.org
**  http://www.zenplex.org
**  http://www.zenplex.com
********************************



Re: user of cdata

Posted by John Thorhauer <jo...@zenplex.com>.
On Tue, 2002-03-05 at 18:41, Jon Scott Stevens wrote:
> 
> FYI, in dlr's testing, he found that MinML is 60% faster than xerces when
> used in XML-RPC. A pretty good reason to not use Xerces IMHO. :-)
OK thanks for the heads up.  I will have to give it a try.

John
-- 
********************************
** John Thorhauer
** john@zenplex.com
** take a look at:
**  http://tambora.zenplex.org
**  http://www.zenplex.org
**  http://www.zenplex.com
********************************



Re: user of cdata

Posted by John Thorhauer <jo...@zenplex.com>.
On Tue, 2002-03-05 at 18:41, Jon Scott Stevens wrote:
> 
> FYI, in dlr's testing, he found that MinML is 60% faster than xerces when
> used in XML-RPC. A pretty good reason to not use Xerces IMHO. :-)
OK thanks for the heads up.  I will have to give it a try.

John
-- 
********************************
** John Thorhauer
** john@zenplex.com
** take a look at:
**  http://tambora.zenplex.org
**  http://www.zenplex.org
**  http://www.zenplex.com
********************************



Re: user of cdata

Posted by Jon Scott Stevens <jo...@latchkey.com>.
on 3/5/02 2:00 PM, "John Thorhauer" <jo...@zenplex.com> wrote:

> I am using xerces so I suspect that is the problem.

FYI, in dlr's testing, he found that MinML is 60% faster than xerces when
used in XML-RPC. A pretty good reason to not use Xerces IMHO. :-)

-jon


Re: user of cdata

Posted by Jon Scott Stevens <jo...@latchkey.com>.
on 3/5/02 2:00 PM, "John Thorhauer" <jo...@zenplex.com> wrote:

> I am using xerces so I suspect that is the problem.

FYI, in dlr's testing, he found that MinML is 60% faster than xerces when
used in XML-RPC. A pretty good reason to not use Xerces IMHO. :-)

-jon


Re: user of cdata

Posted by John Thorhauer <jo...@zenplex.com>.
On Tue, 2002-03-05 at 16:55, John Wilson wrote:
> 
> John,
> 
> what version of the XML-RPC system are you using and what XML parser?

I am using the helma package so I suspect that it the problem.


> 
> 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.

I am using xerces so I suspect that is the problem.  I will have to take
a look at this and see what I can find.  Thanks for the info.

John

> 
> 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
-- 
********************************
** John Thorhauer
** john@zenplex.com
** take a look at:
**  http://tambora.zenplex.org
**  http://www.zenplex.org
**  http://www.zenplex.com
********************************



Re: user of cdata

Posted by John Thorhauer <jo...@zenplex.com>.
On Tue, 2002-03-05 at 16:55, John Wilson wrote:
> 
> John,
> 
> what version of the XML-RPC system are you using and what XML parser?

I am using the helma package so I suspect that it the problem.


> 
> 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.

I am using xerces so I suspect that is the problem.  I will have to take
a look at this and see what I can find.  Thanks for the info.

John

> 
> 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
-- 
********************************
** John Thorhauer
** john@zenplex.com
** take a look at:
**  http://tambora.zenplex.org
**  http://www.zenplex.org
**  http://www.zenplex.com
********************************



Re: user of cdata

Posted by John Wilson <tu...@wilson.co.uk>.
----- Original Message -----
From: "John Thorhauer" <jo...@zenplex.com>
To: <rp...@xml.apache.org>
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


Re: user of cdata

Posted by John Thorhauer <jo...@zenplex.com>.
On Tue, 2002-03-05 at 16:32, Jason van Zyl wrote:
> 
> Can you send a little snippet containing the CDATA element?
>  

Sure,

<shipto><![CDATA[317 Madison Ave. Suite 1500 New York NY
10017]]></shipto>


John




Re: user of cdata

Posted by John Thorhauer <jo...@zenplex.com>.
On Tue, 2002-03-05 at 16:32, Jason van Zyl wrote:
> 
> Can you send a little snippet containing the CDATA element?
>  

Sure,

<shipto><![CDATA[317 Madison Ave. Suite 1500 New York NY
10017]]></shipto>


John




Re: user of cdata

Posted by Jason van Zyl <jv...@zenplex.com>.
On Tue, 2002-03-05 at 16:26, John Thorhauer wrote:
> 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,

Can you send a little snippet containing the CDATA element?
 
> Thanks,
> John
> -- 
> ********************************
> ** John Thorhauer
> ** john@zenplex.com
> ** take a look at:
> **  http://tambora.zenplex.org
> **  http://www.zenplex.org
> **  http://www.zenplex.com
> ********************************
> 
-- 
jvz.

Jason van Zyl
jvanzyl@apache.org

http://tambora.zenplex.org


Re: user of cdata

Posted by Jason van Zyl <jv...@zenplex.com>.
On Tue, 2002-03-05 at 16:26, John Thorhauer wrote:
> 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,

Can you send a little snippet containing the CDATA element?
 
> Thanks,
> John
> -- 
> ********************************
> ** John Thorhauer
> ** john@zenplex.com
> ** take a look at:
> **  http://tambora.zenplex.org
> **  http://www.zenplex.org
> **  http://www.zenplex.com
> ********************************
> 
-- 
jvz.

Jason van Zyl
jvanzyl@apache.org

http://tambora.zenplex.org


Re: user of cdata

Posted by John Wilson <tu...@wilson.co.uk>.
----- Original Message -----
From: "John Thorhauer" <jo...@zenplex.com>
To: <rp...@xml.apache.org>
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