News:

This week IPhone 15 Pro winner is karn
You can be too a winner! Become the top poster of the week and win valuable prizes.  More details are You are not allowed to view links. Register or Login 

Main Menu

With XML, CR / LF is Converted to LF

Started by ben2ong2, October 05, 2006, 05:00:16 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

ben2ong2

With XML, a new line is always stored as LF.
Do you know what a typewriter is? Well, a typewriter is a mechanical device which was used last century to produce printed documents. :-)
After you have typed one line of text on a typewriter, you have to manually return the printing carriage to the left margin position and manually feed the paper up one line.
In Windows applications, a new line is normally stored as a pair of characters: carriage return (CR) and line feed (LF). The character pair bears some resemblance to the typewriter actions of setting a new line. In Unix applications, a new line is normally stored as a LF character. Macintosh applications use only a CR character to store a new line.

You are not allowed to view links. Register or Login
You are not allowed to view links. Register or Login