Overview
Examples
Screenshots
Comparisons
Applications
Download
Documentation
Tutorials
Bazaar
Status & Roadmap
FAQ
Authors & License
Forums
Funding Ultimate++
Search on this site
Search in forums












SourceForge.net Logo
Home » U++ Library support » U++ Core » EOL problem
Re: EOL problem [message #21880 is a reply to message #21827] Tue, 09 June 2009 09:51 Go to previous message
gridem is currently offline  gridem
Messages: 45
Registered: August 2008
Member
XML specification says:

-------
2.11 End-of-Line Handling

XML parsed entities are often stored in computer files which, for editing convenience, are organized into lines. These lines are typically separated by some combination of the characters CARRIAGE RETURN (#xD) and LINE FEED (#xA).

To simplify the tasks of applications, the XML processor MUST behave as if it normalized all line breaks in external parsed entities (including the document entity) on input, before parsing, by translating both the two-character sequence #xD #xA and any #xD that is not followed by #xA to a single #xA character.
-------

So this paragraph denotes how the line will be interpreted during parsing the XML file. As I understand:
CR LF -> LF
LF CR -> LF
CR -> LF
LF -> LF

But this line doesn't tell us what we should do in case of saving the file in XML format. Also the problem appears not from parsing the entity but from saving the spaces between tags itself.

I think that the saving using Windows EOL format will be good solution, because this approach had been used in QTF project.

Sorry for my bad English.
 
Read Message
Read Message
Read Message
Read Message
Previous Topic: Problem with DirectoryExists() in windows
Next Topic: string filtering bug
Goto Forum:
  


Current Time: Fri Aug 15 15:38:50 CEST 2025

Total time taken to generate the page: 0.10698 seconds