解析XML报错:Content is not allowed in prolog

参考这里:http://www.cnblogs.com/kaixin110/archive/2007/12/25/1013722.html html   kaixin110 写道 对于UTF-8编码的文件来讲, BOM头是无关紧要的. 若是用dom4J加载含有BOM 头的UTF-8格式的xml文件, 却会抛出"Content is not allowed in prolog"异常. 原来无BOM头
相关文章
相关标签/搜索