The reference to entity "ouml" must end with the ';' delimiter
2013-08-21 11:16
267 查看
上网google,发现是sax解析造成的问题。解决方案很简单,就是把配置项值中用到"&"的地方改成"&"。原因是sax解析的类库在读取文件的时候是根据转义后的格式进行读取的,遇到"&"就认为是一个转义字符串,开始找结束符";",找不到自然就报错了。
在xml文件中有以下几类字符要进行转义替换:
在xml文件中有以下几类字符要进行转义替换:
< | < | 小于号 |
> | > | 大于号 |
& | & | 和 |
' | ' | 单引号 |
" | " | 双引号 |
相关文章推荐
- dom4j:The reference to entity "characterEncoding" must end with the ';' delimiter
- The reference to entity "afs" must end with the ';' delimiter.
- The reference to entity "characterEncoding" must end with the ';' delimiter
- 【url】The reference to entity "characterEncoding" must end with the ';' delimiter
- The reference to entity "characterEncoding" must end with the ';' delimiter
- The reference to entity "characterEncoding" must end with the ';' delimiter
- The reference to entity "characterEncoding" must end with the ';' delimiter
- The reference to entity "characterEncoding" must end with the ';' delimiter
- The reference to entity "" must end with the ';' delimiter
- The reference to entity "password" must end with the ';' delimiter.的原因跟解决方法
- The reference to entity "autoReconnect" must end with the ';' delimiter.
- Android中String.xml: The reference to entity "timestamp" must end with the ';' delimiter
- The reference to entity "characterEncoding" must end with the ';' delimiter
- The reference to entity "characterEncoding" must end with the ';' delimiter
- 配置文件中出现 The reference to entity "XX" must end with the ';' delimiter. 错误提示
- The reference to entity "characterEncoding" must end with the ';' delimiter
- The reference to entity "characterEncoding" must end with the ';' delimiter
- .The reference to entity "characterEncoding" must end with the ';' delimiter.
- The reference to entity "password" must end with the ';' delimiter.的原因跟解决方法
- The reference to entity "characterEncoding" must end with the ';' delimiter