Re: Problem with serializing Text Data

Michael Glavassevich <[email protected]>
Newsgroups gmane.text.xml.xerces-j.user
Message-ID <OFE301CACB.CB9C0188-ON85257B79.005D7CCE-85257B79.005DEE71@ca.ibm.com>
Hi Chris,

What XML API are you using for serializing your document?

A code snippet showing what you did might help.

Thanks.

Michael Glavassevich
XML Technologies and WAS Development
IBM Toronto Lab
E-mail: [email protected]
E-mail: [email protected]

Chris Bowditch <[email protected]> wrote on 05/28/2013 12:41:33 
PM:

> Hi All,
> 
> I've been searching JIRA for any issue serializing text data that 
> contains CDATA keyword (but is not a fully formed CDATA section) I 
> couldn't see one, so I'm posting here before I starting debugging the 
> Serializer code to see if anyone has seen this issue.
> 
> In the input XML we have the following text node:
> 
> &lt;value&gt;&lt;![CDATA[-1]]&gt;&lt;/value&gt;
> 
> Our application is using Xerces to parse this XML and its correctly 
> recognized as a character event. If I try to serialize this same 
> character event, the resulting XML ends up like:
> 
> <value><![CDATA[-1]]]]><![CDATA[></value>
> 
> This looks wrong to me and results in a malformed XML File.
> 
> Any input would be welcomed.
> 
> Thanks,
> 
> Chris
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [email protected]
> For additional commands, e-mail: [email protected]
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.