【发布时间】:2011-01-22 16:02:28
【问题描述】:
在 Java 上解析 xml 文件时出现错误:
An invalid XML character (Unicode: 0x0) was found in the element content of the document.
xml 来自网络服务。
问题是只有当webservice在localhost(windows+tomcat)上运行时我才会得到错误,而不是webservice在线时(linux+tomcat)。
如何替换无效字符? 谢谢。
【问题讨论】: