I think there's a left square bracket missing in the CDATA.  It should be
<![CDATA[ .... ]]>

Jeff
----- Original Message ----- 
From: Michael Glavassevich
To: [EMAIL PROTECTED]
Sent: Monday, November 22, 2004 9:07 AM
Subject: Re: SAX Parse error while parsing CDATA element



The sequence "]]>" [1] cannot appear in character data. You should escape
the ">" with &gt;.

[1] http://www.w3.org/TR/2004/REC-xml-20040204/#NT-CharData

Radhakrishnan J <[EMAIL PROTECTED]> wrote on 11/22/2004 11:49:01
AM:

> Hi,
>
> We are using XmlBeans and in some places need to generate documents that
are
> DTD conformant. Sometimes, another XML document needs to be embedded
within
> these documents. I tried to use a SAX Parser ( Xerces v 2.2.0 ) to process
a
> test XML string generated by XmlBeans. The following is the XML ( as seen
in
> java code ),
>
>   "<?xml version=\"1.0\" encoding=\"UTF-8\"?>" +
>   "<some-content some-attribute=\"some-attribute-value\">" +
>   "<!CDATA[some-content-value is: Tom &Jerry is my favorite cartoon show
> !]]>" +
>   "</some-content>";


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to