dom4j解析xml错误 转载▼ org.dom4j.DocumentException: Error on line 1 of document : Content is not allowed in prolog. Nested exception: Content is not allowed in prolog. 错误原因:dom4j版本从 dom4j1.4换到 dom4j1.6 就可以。