和& #xD; [英] Difference between 
 and 
问题描述
我需要解析从不同来源获得的一些text / xml文件。现在,我发现换行符存在一些问题。
I need to parse some text/xml files I get from different sources. Now I have found some problems with line breaks.
在某些文件中,我得到
作为换行符,在另一些文件中,我仅得到& #xD;
。
现在我们的 Delphi XE 2
的<$ c $有一些问题c>& #xD; ,因此无法正确导入。
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.
例如:
1. City&#x0D;&#x0A; State
导入结果:
For example:
1. City
State
Result of import:
城市
省
City
State
-
City& #xD;& #xA; State
导入结果:
城市与州
为什么会发生以及如何解决?
Why does this occur and how to solve it?
推荐答案
这两个XML文本之间没有区别。 &#x0D;
指定与& #xD;
相同的字符。对于&#x0A;
和& #xA;
同样。
There is no difference between these two XML texts. 
specifies the same character as 
. Likewise for 

and 

.
您的XML解析器已损坏,解决方案是修复或替换它。
Your XML parser is broken and the solution is to either fix it or replace it.
这篇关于&#x0D;和& #xD;的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!