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[<&lt;]]>


in the output doc -

<![CDATA[<&lt;]]>


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 "&lt" or "&amp" 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[&lt;]]>
> > 
> > would be &lt;
> > 
> > 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]

Reply via email to