问题
I need to parse some text/xml files I get from different sources. Now I have found some problems with line breaks.
In some files i get 
 as line break, in some others i get only 
.
Now our Delphi XE 2 has some problems with 
, it is not imported correctly.
For example:
1. City
State
Result of import:
City
State
City
State
Result of import:
City&&State
Why does this occur and how to solve it?
回答1:
There is no difference between these two XML texts. 
 specifies the same character as 
. Likewise for 
 and 
.
Your XML parser is broken and the solution is to either fix it or replace it.
来源:https://stackoverflow.com/questions/33911440/difference-between-x0d-and-xd