【发布时间】:2012-12-07 18:39:59
【问题描述】:
可能重复:
Cure for ‘The string “--” is not permitted within comments.’ exception?
我有一个 Java 项目来解析和编辑 XML 文件。 当我尝试运行该项目时,我收到以下日志消息:
cmets 中不允许使用字符串“--”。 线程“main”org.xml.sax.SAXParseException 中的异常:cmets 中不允许使用字符串“--”。 在 com.sun.org.apache.xerces.internal.parsers.DOMParser.parse(DOMParser.java:246) ...我该如何解决?
【问题讨论】: