Difference between
and

陌路散爱 提交于 2020-06-17 08:10:22

问题


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

  1. 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

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!