Today I found that Embarcadero censors my replies in the embarcadero.public.delphi.xml newsgroup..
My reply:
Code:
subject: Re: best practise for storing CR LF in their original non normalised form
On 25-Jun-2011 9:59 AM, David Howes wrote:
> I'm using MSXML4 and I need to preserve CR, LF pairs in their original format. What's best practise for this? I have tried storing as character entites, but it still insists upon normalising. I have read the XML spec and understand that circumstances under which the normalisation is occurring. I have searched the web, there's a ton of useless information pointing to the XML spec and why it happens, but no solutions for anyone who simply wants to store a CR followed by a LF. Any help would be appreciated.
>
>
NativeXml has the option of writing CRLF (aka "Windows end-of-lines") instead of just LF (just LF is used in normalisation by default). See TNativeXml.EolStyle. I don't know if MSXML also has such option.
You can try NativeXml, it is free and open-source:
http://www.simdesign.nl/xml.html
Kind regards, Nils
And the censored reply in the newsgroup:
Code:
On 25-Jun-2011 9:59 AM, David Howes wrote:
> I'm using MSXML4 and I need to preserve CR, LF pairs in their original format. What's best practise for this? I have tried storing as character entites, but it still insists upon normalising. I have read the XML spec and understand that circumstances under which the normalisation is occurring. I have searched the web, there's a ton of useless information pointing to the XML spec and why it happens, but no solutions for anyone who simply wants to store a CR followed by a LF. Any help would be appreciated
Embarcadero obviously doesn't want developers to give solutions using their open-source projects, even tho they are very on-topic. Be warned!
Nils