利用dom4j解析xml文件时发生The reference to entity password must end with the ';' delimiter.的解决方法
2009-06-13 18:16
447 查看
在项目中的配置文件中有如下代码:
<set-property name="url" value="jdbc:mysql://192.168.0.123/test?user=root&password=123456"/>
在解析时,抛出异常
解决:
dom4j在解析xml文件时,&字符需要转义成&因此改成
<set-property name="url" value="jdbc:mysql://192.168.0.123/test?user=root&password=123456"/>
就可以了
<set-property name="url" value="jdbc:mysql://192.168.0.123/test?user=root&password=123456"/>
在解析时,抛出异常
解决:
dom4j在解析xml文件时,&字符需要转义成&因此改成
<set-property name="url" value="jdbc:mysql://192.168.0.123/test?user=root&password=123456"/>
就可以了
相关文章推荐
- The reference to entity "password" must end with the ';' delimiter.的原因跟解决方法
- The reference to entity "password" must end with the ';' delimiter.的原因跟解决方法
- dom4j:The reference to entity "characterEncoding" must end with the ';' delimiter
- The reference to entity "preinfo" must end with the ';'delimiter.
- The reference to entity "characterEncoding" 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 "ouml" must end with the ';' delimiter
- The reference to entity "afs" must end with the ';' delimiter.
- The reference to entity "autoReconnect" 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 "XX" must end with the ';' delimiter. 错误提示
- The reference to entity "characterEncoding" must end with the ';' delimiter
- 配置JNDI 报错 The reference to entity "characterEncoding" must end with the ';' delimiter
- The reference to entity "characterEncoding" must end with the ';' delimiter. Nested exception: The r
- 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