org.dom4j.DocumentException: null Nested exception: null

zhaihonghonghzh 2015-12-26 04:51:10
报上面的错误怎么解决?
代码:
public static Object[] iterateWholeXMLtest(String filename) throws DocumentException {
System.out.println("filename="+filename);
List<Map<String, String>> list = new ArrayList<Map<String, String>>();
Map<String, String> hashMap = new HashMap<String, String>();
Document document = DocumentHelper.parseText(filename);
Element root = document.getRootElement();
}
描述:filename是xml格式的字符串不是文件路径
...全文
128 回复 打赏 收藏 转发到动态 举报
写回复
用AI写文章
回复
切换为时间正序
请发表友善的回复…
发表回复

58,452

社区成员

发帖
与我相关
我的任务
社区描述
Java Eclipse
社区管理员
  • Eclipse
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧