Re: TXMLDocument and ampersand

2007-07-24 Thread Francois Piette
Enclose it in a CDATASection. Not sure it would change anything except make the XML even less human readable. My goal is to have the XML the most human readable as possible, with best indentation. -- [EMAIL PROTECTED] Author of ICS (Internet Component Suite, freeware) Author of MidWare

Re: TXMLDocument and ampersand

2007-07-24 Thread Francois Piette
nodexamp;#13;amp;#10;y/node That's not what Francois wants. He wants this: nodex#13;#10;y/node Right ! The XML serializer, though, doesn't normally bother with character entities for normal printable characters like carriage return and line feed. Instead, it outputs this: nodex y/node

TXMLDocument and ampersand

2007-07-23 Thread Francois Piette
When I write an ampersand () to the value of an XML node, TXMLDocument replace it with amp; entity which is fine since when reading it back it is transformed to the original ampersand. But my problem is that I want to write CRLF par as #13;#10; to avoid having the CRLF written as is in the XML

Re: TXMLDocument and ampersand

2007-07-23 Thread Eddie Shipman
Enclose it in a CDATASection. SNIP But my problem is that I want to write CRLF par as to avoid having the CRLF written as is in the XML document (I find it more readable to have the CRLF encoded). How can I tell TXMLDocument to write the ampersand () without escaping it ?

Re: TXMLDocument and ampersand

2007-07-23 Thread Rob Kennedy
Eddie Shipman wrote: SNIP But my problem is that I want to write CRLF par as to avoid having the CRLF written as is in the XML document (I find it more readable to have the CRLF encoded). How can I tell TXMLDocument to write the ampersand () without escaping it? Enclose it in a