You are viewing a plain text version of this content. The canonical link for it is here.
Posted to j-dev@xerces.apache.org by "Lucas, Alexander" <Al...@framfab.de> on 2000/06/02 11:44:25 UTC

AW: Serializing multiple CDATAs

Hi Eric,

the latest version I'm using is xerces-j-1.1.0.
My Problem appears since version 1.0.2.
Version 1.0.1 works fine with DOMSerializer.

Tests with dom.DOMWriter also work fine but unfortunately
the DOMWriter example has no capability to work with output formats.

As your CVS repositroy shows you have added the feature
"Multiple CDATA sections now print as one" to XMLSerializer
and BaseMarkupSerializer on Fri Jan 14. 
This happened just between build 1.0.1 and 1.0.2.

Maybe something goes wrong here?


Best regards,

Alexander Lucas
mailto:alexander.lucas@framfab.de

> Which version of Xerces is the latest you are using? and try 
> sax.SAXWriter
> or dom.DOMWriter and see if you can get the same result.
> 
> 
> > I'm trying to serialize the following line of a previously parsed
> > document using the DOMSerializer:
> >
> > <testdoc><![CDATA[Peter &
Mary]]><myelement>foo</myelement><![CDATA[0<1]]></testdoc>
> >
> > Xerces combines the two CDATA blocks to one big CDATA and puts
> > the element <myelement> into this CDATA, too.
> > The result is:
> >
> > <testdoc><![CDATA[Peter & Mary<myelement>foo</myelement>0<1]]></testdoc>
> >
> > I'm observing this problem since Xerces 1.0.2.
> > Is this really a correct behaviour?