Hi Martin,
In the sample application I just wrote the DOMWriter behaved as I
expected - that is it wrote out in the format in which the text in the
CData sections was read in.
in the input doc -
<![CDATA[<<]]>
in the output doc -
<![CDATA[<<]]>
is this not the behaviour you are seeing?
Gareth
On Mon, 30 Sep 2002, Burkhardt Martin (GS/EMW2) wrote:
> Gareth,
>
> thanks for your helpful information!
>
> I guess my question then is: How can I prevent the DOMWriter from escaping
> the special characters like '<' or '&' to "<" or "&" respectively in
> CDataSections? As far as I understand the XML specification, CDataSections
> explicitly do not require escaping these characters!?
>
> I hope I don't need to write my own serialization...
>
> Regards,
>
> Martin
>
> > unlike text in attribute values and in element content, nothing
> > happens to the encoding of characters in CDATA sections
> > during parse. So
> > the node value of
> >
> > <![CDATA[<]]>
> >
> > would be <
> >
> > and the node value of
> >
> > <![CDATA[<]]>
> >
> > would be <
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>
--
Gareth Reakes, Head of Product Development
DecisionSoft Ltd. http://www.decisionsoft.com
Office: +44 (0) 1865 203192
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]