可能重複:
Cure for ‘The string 「--」 is not permitted within comments.’ exception?字符串 「 - 」 是不允許的,Java項目
我有一個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) ...
我怎樣才能解決這個問題?
向我們展示一些代碼plz – Minion91
和類似的http://stackoverflow.com/questions/1324821/nested-comments-in-xml –