今天解释:xml中报错。

xml文件为

xml中不能有特殊字符

解析过程报: The reference to entity "EV" must end with the ';' delimiter.

仔细一看:是xml中包含‘&’特殊符号;

如果一定带上这个符号必须把它转义成:&

还有同类符号有:

大于 >  &gt ; 
小于 <  &lt;
空格  &nbsp;
单引号 ‘ &apos; 
双引号 “ &quot; 
井号 # &#35;

相关文章: