LF CR handling

Discussion in 'XML' started by Jimmy zhang, Aug 8, 2004.

  1. Jimmy zhang

    Jimmy zhang Guest

    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?
    Jimmy zhang, Aug 8, 2004
    #1
    1. Advertising

  2. 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
    Richard Tobin, Aug 8, 2004
    #2
    1. Advertising

  3. Jimmy zhang

    Jimmy zhang Guest

    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
    Jimmy zhang, Aug 8, 2004
    #3
  4. 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
    Richard Tobin, Aug 8, 2004
    #4
    1. Advertising

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

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. news.onet.pl

    session handling over HTTP

    news.onet.pl, Aug 12, 2005, in forum: ASP .Net
    Replies:
    3
    Views:
    595
    mbstevens
    Aug 12, 2005
  2. Robert V
    Replies:
    1
    Views:
    1,174
    Jeremy Fluhmann
    Jul 21, 2003
  3. Mark Tarver
    Replies:
    22
    Views:
    1,298
    J Kenneth King
    Apr 26, 2009
  4. Peter
    Replies:
    34
    Views:
    1,931
    James Kanze
    Oct 17, 2009
  5. Iñaki Baz Castillo
    Replies:
    1
    Views:
    181
    Iñaki Baz Castillo
    Apr 15, 2008
Loading...

Share This Page