SimDesign

SimDesign software users forum
It is currently Thu Jun 20, 2013 4:34 am

All times are UTC + 1 hour




Post new topic Reply to topic  [ 5 posts ] 
Author Message
PostPosted: Wed Aug 31, 2011 11:22 am 
Offline
Site Admin
User avatar

Joined: Tue Jan 20, 2004 3:59 pm
Posts: 1425
Location: Hellevoetsluis, Netherlands
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


Top
 Profile  
 
PostPosted: Wed Aug 31, 2011 2:44 pm 
Offline
Senior Member

Joined: Mon Aug 01, 2005 1:53 pm
Posts: 221
It seems to have made it intact through this interface:

https://forums.embarcadero.com/thread.j ... 1&tstart=0

I posted a blurb too.


Top
 Profile  
 
PostPosted: Thu Sep 01, 2011 12:18 am 
Offline
Site Admin
User avatar

Joined: Tue Jan 20, 2004 3:59 pm
Posts: 1425
Location: Hellevoetsluis, Netherlands
Thanks Garry,

Then it may be that the embarcadero server just does not work very well thru nntp.. I am relieved :)

In fact, I do get timeouts thru nntp quite regularly but till now there were no crippled messages.

Kind regards, Nils


Top
 Profile  
 
PostPosted: Thu Sep 01, 2011 9:09 am 
Offline
Member
User avatar

Joined: Thu Jan 06, 2011 9:28 am
Posts: 34
Location: Horsham, UK
I'd noticed this with a couple of your recent posts. Thought it might be something to do with the OLR I use for the newsgroups. I'll try re-fetching the message.

_________________
... Joe


Top
 Profile  
 
PostPosted: Fri Sep 02, 2011 1:07 am 
Offline
Site Admin
User avatar

Joined: Tue Jan 20, 2004 3:59 pm
Posts: 1425
Location: Hellevoetsluis, Netherlands
Thanks Joe,

Maybe the emb forum is better, at least easier formatting and a few extra options.

But I am accustomed to the NNTP newsgroups, having all groups at a glance. Maybe I am getting old :)

Anyway, I am relieved it was not "malicious censorship" of embarcadero, it was just the NNTP server having hickups.

Kind regards, Nils


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 5 posts ] 

All times are UTC + 1 hour


Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
cron
Powered by phpBB® Forum Software © phpBB Group