Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > XML > LF CR handling

Reply
Thread Tools

LF CR handling

 
 
Jimmy zhang
Guest
Posts: n/a
 
      08-08-2004
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?


 
Reply With Quote
 
 
 
 
Richard Tobin
Guest
Posts: n/a
 
      08-08-2004
In article <KzvRc.94618$8_6.10804@attbi_s04>,
Jimmy zhang <> wrote:

>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
 
Reply With Quote
 
 
 
 
Jimmy zhang
Guest
Posts: n/a
 
      08-08-2004
so CR --> LF

CRLF --> LF

and LF --> LF?

What about LFCR --> LFLF??

CR CR CR --> LF LF LF?
or

CRCRCR --> LF??


"Richard Tobin" <> wrote in message
news:cf61uf$bft$...
> In article <KzvRc.94618$8_6.10804@attbi_s04>,
> Jimmy zhang <> wrote:
>
> >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



 
Reply With Quote
 
Richard Tobin
Guest
Posts: n/a
 
      08-08-2004
In article <6owRc.223645$a24.24033@attbi_s03>,
Jimmy zhang <> wrote:

>so CR --> LF
>
>CRLF --> LF
>
>and LF --> LF?
>
>What about LFCR --> LFLF??
>
>CR CR CR --> LF LF LF?


Yes to all of them.

-- Richard
 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
signal handling and (structured) exception handling Peter C++ 34 10-17-2009 10:03 AM
python list handling and Lisp list handling Mark Tarver Python 22 04-26-2009 09:36 PM
Is faster handling hexadecimal values than handling chars? IƱaki Baz Castillo Ruby 1 04-15-2008 09:04 AM
cookie handling - accept from domain or specific sub-domains ?? cookie-monster Firefox 2 03-07-2005 01:13 PM
Thunderbirds handling of jpgs and gif attached to email Dan Firefox 6 10-05-2004 01:25 PM



Advertisments
 



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57