You are right Eddie. I made a stupid error when testing. Shame on me. CDATA doesn't escape any character. Thanks.
btw: This doesn't solve my problem since my goal is to make the generated XML the most human readable as possible in the specific case I have. That's why I want to encode CRLF to avoid having the data split on several lines in the XML file. My data is small but contain CRLF. CDATA section is not nice looking. regards, -- [EMAIL PROTECTED] Author of ICS (Internet Component Suite, freeware) Author of MidWare (Multi-tier framework, freeware) http://www.overbyte.be ----- Original Message ----- From: "Eddie Shipman" <[EMAIL PROTECTED]> To: "Borland's Delphi Discussion List" <[email protected]> Sent: Tuesday, July 24, 2007 3:50 PM Subject: Re: TXMLDocument and ampersand > READ THE RFC. Anything that is not escaped should be in > a CDATASection, PERIOD. That was the question asked. > > --- Rob Kennedy <[EMAIL PROTECTED]> wrote: > > > >> How can I tell TXMLDocument to write the ampersand ("&") without > > >> escaping it? > > > > > > Enclose it in a CDATASection. > > > > Enclose what? Do you envision something like this? > > > > <node>x<![CDATA[ > ]]>y</node> > > > > That is identical to this: > > > > <node>x&#13;&#10;y</node> > > > > That's not what Francois wants. He wants this: > > > > <node>x > y</node> _______________________________________________ Delphi mailing list -> [email protected] http://www.elists.org/mailman/listinfo/delphi

