473,385 Members | 2,014 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,385 software developers and data experts.

LF CR handling

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?
Jul 20 '05 #1
3 2771
In article <KzvRc.94618$8_6.10804@attbi_s04>,
Jimmy zhang <jz****@ximpleware.com> 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
Jul 20 '05 #2
so CR --> LF

CRLF --> LF

and LF --> LF?

What about LFCR --> LFLF??

CR CR CR --> LF LF LF?
or

CRCRCR --> LF??
"Richard Tobin" <ri*****@cogsci.ed.ac.uk> wrote in message
news:cf**********@pc-news.cogsci.ed.ac.uk...
In article <KzvRc.94618$8_6.10804@attbi_s04>,
Jimmy zhang <jz****@ximpleware.com> 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

Jul 20 '05 #3
In article <6owRc.223645$a24.24033@attbi_s03>,
Jimmy zhang <jz****@ximpleware.com> 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
Jul 20 '05 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: WSeeger | last post by:
When creating a new class, is it encouraged to always include error handling routines within your LET and GET procedures? It's seems that most text books never seem to include much about error...
9
by: Hans-Joachim Widmaier | last post by:
Hi all. Handling files is an extremely frequent task in programming, so most programming languages have an abstraction of the basic files offered by the underlying operating system. This is...
3
by: Master of C++ | last post by:
Hi, I am an absolute newbie to Exception Handling, and I am trying to retrofit exception handling to a LOT of C++ code that I've written earlier. I am just looking for a bare-bones, low-tech...
21
by: Anthony England | last post by:
Everyone knows that global variables get re-set in an mdb when an un-handled error is encountered, but it seems that this also happens when the variable is defined as private at form-level. So...
3
by: Stefan Johansson | last post by:
Hi all I'am moving from Visual Foxpro and have a question regarding "best practice" error handling in vb .net. In VFP I have always used a "central" error handling object in order to have a...
4
by: Al Williams | last post by:
Hi, I have error handling in place throughout my application. I also start the application wrapped in error handling code to catch any unexpected exceptions (i.e. exceptions that occur where I...
9
by: Gustaf | last post by:
I'm confused about structured error handling. The following piece of code is a simplification of a class library I'm working on. It works, and it does what I want, but I'm still not convinced that...
7
by: yogeshnelwadkar | last post by:
Hello, i have a problem with replacing c++ exception handling with structured exception handling. How to replace the " catch(...) " in c++ exception handling with, __except , a structured...
41
by: Zytan | last post by:
Ok something simple like int.Parse(string) can throw these exceptions: ArgumentNullException, FormatException, OverflowException I don't want my program to just crash on an exception, so I must...
0
by: Lysander | last post by:
Thought I would give something back with a few articles. This article is a bit of code to add error handling. When I have time, I want to write articles on multilingual databases, and Access...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.