【发布时间】:2015-12-15 13:14:02
【问题描述】:
我正在使用 commons http-client 进行 SOAP 服务调用并收到以下异常 -
异常处理消息:org.xml.sax.SAXParseException;行号:20;山口 umn号:23;在值中发现无效的 XML 字符 (Unicode: 0x{2}) 属性“{1}”和元素为“1”。
我知道我有一个角色
☺
根据XML specification,在我的数据中是不允许的。
有没有办法配置 commons http-client/SAX XML Parser 以忽略/删除/清除输入数据中不支持的字符?
【问题讨论】:
-
你能粘贴一些示例 xml 来测试吗?您使用的是哪些库?
-
@tomaj 我已更新问题以包含更多信息
标签: xml special-characters sax apache-commons-httpclient saxparseexception