【发布时间】:2014-05-30 19:48:49
【问题描述】:
我收到错误消息:org.xml.sax.SAXParseException; lineNumber: 1; columnNumber: 14515; An invalid XML character (Unicode: 0x1a) was found in the element content of the document。
我收到错误的 xml 文件内容:
<Product>
<Description>672577000 3M 4540 DISPOSABLE COVERALL → XL</Description>
</Product>
我在使用 org.w3c.dom.Document 对象解析文档时遇到此错误,由于输入文件中的 → 而发生错误。那么我该如何解决这个问题呢?
【问题讨论】:
-
是的,我从 开始,但也收到此错误
-
无效的 XML 字符 (Unicode: 0x1a) 表示存在无效字符。检查以确保没有双字节字符或其他东西。