[Expat-discuss] (no subject)

Mark 11mjazbdg02 at sneakemail.com
Thu Nov 27 10:57:52 EST 2003


> Infact all CRs (and CRLF pairs) are converted into single LF. This is 

> something that all conformant

> parsers do, I believe even MSXML does this. There might be 

> some setting in 

> parser that preserves

> CRs or there might not. So you must handle these at 

> application level. 

> Sometimes you can just work with (unix) style LFs, usually this isn't 

> possible when working in windows and you want to "visualize" 

> your data to 

> the user though. So you need to convert them to CRLFs, nasty 

> job, I know.

> 

> with respect,

> 

> 

> see XML 1.0 spec

> http://www.xml.com/axml/target.html#sec-line-ends

> 



Toni, thanks for the reply. I understand it a bit better now.  



However I cannot just translate all LF's to CRLF's since our data can 

contain LF or CRLF and this must be preserved.  Do you have any idea how I could solve this?



Thanks, Mark



More information about the Expat-discuss mailing list