xml文件解析报错

lin52p 2009-06-03 09:34:07
Caused by: org.xml.sax.SAXParseException: XML document structures must start and end within the same entity.
Caused by: com.ibatis.common.exception.NestedRuntimeException: Error parsing XPath '/sqlMapConfig/sqlMap'. Cause: com.ibatis.common.xml.NodeletException: Error parsing XML. Cause: org.xml.sax.SAXParseException: XML document structures must start and end within the same entity.
Caused by: org.xml.sax.SAXParseException: XML document structures must start and end within the same entity.

为什么我的xml文件没报任何错误 而 编译出这个问题

我把文件代码减少一半就没问题了,可是在实际程序中又不可以减少

怎么解决这个问题?

谢谢了
...全文
238 4 打赏 收藏 转发到动态 举报
写回复
用AI写文章
4 条回复
切换为时间正序
请发表友善的回复…
发表回复
lin52p 2009-06-04
  • 打赏
  • 举报
回复
还有我这项目在 jdk5.0可以运行不报任何错误

在jdk6.0就报这个错误

高手帮忙解决下

谢谢了
lin52p 2009-06-04
  • 打赏
  • 举报
回复
如果缺少标签或者语法有错

不存在切掉一部分还可以运行 啊!
hookee 2009-06-03
  • 打赏
  • 举报
回复
看上去应该是缺少结束标签,查一下开始和结束标签是不是匹配。把xml文件拖到ie里就可以查到了.
孟子E章 2009-06-03
  • 打赏
  • 举报
回复
检查一下XPath 写法

8,907

社区成员

发帖
与我相关
我的任务
社区描述
XML/XSL相关问题讨论专区
社区管理员
  • XML/XSL社区
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

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