可能重复:
治愈'字符串' - "评论中不允许".例外?
我有一个Java项目来解析和编辑XML文件.当我尝试运行该项目时,我收到以下日志消息:
The string "--" is not permitted within comments.
Exception in thread "main" org.xml.sax.SAXParseException: The string "--" is not permitted within comments.
at com.sun.org.apache.xerces.internal.parsers.DOMParser.parse(DOMParser.java:246)
...
我该如何解决?