LF CR handling

Jimmy Zhang

Usenet Archive
Joined
Feb 3, 2000
Messages
69
Reaction score
0
I was reading XML 1.0 spec and it appears to me that there is no mention in the spec itself that CR must be removed so that LF is the only thing used to signal the end of line (unix convention) but I was reading another book the other day, which said otherwise.

Can someone help?
 

Richard Tobin

Usenet Archive
Joined
Jan 6, 2000
Messages
4,251
Reaction score
0
Jimmy zhang said:
I was reading XML 1.0 spec and it appears to me that there is no mention in the spec itself that CR must be removed so that LF is the only thing used to signal the end of line

There is: section 2.11. CR, CR-LF and LF all result in LF being passed to the application. In XML 1.1, NEL and LSEP are also translated.

-- Richard
 

Jimmy Zhang

Usenet Archive
Joined
Feb 3, 2000
Messages
69
Reaction score
0
so CR --> LF

CRLF --> LF

and LF --> LF?

What about LFCR --> LFLF??

CR CR CR --> LF LF LF?
or

CRCRCR --> LF??
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
548,208
Messages
3,104,799
Members
249,594
Latest member
henrywalsh

Latest Threads

Top