加入收藏 | 设为首页 | 会员中心 | 我要投稿 李大同 (https://www.lidatong.com.cn/)- 科技、建站、经验、云计算、5G、大数据,站长网!
当前位置: 首页 > 百科 > 正文

xml中出现“文档中根元素后面的标记必须格式正确。”的错误

发布时间:2020-12-16 06:11:11 所属栏目:百科 来源:网络整理
导读:出现这个错误的原因是,没有加根节点。请看下面的代码: ?xml version="1.0" encoding="GB2312" standalone="no"?time//如果这里和结尾的/time不加,就会出现如题的错误mondayplayGameTime5.0/playGameTimestudyTime3.0/studyTimereadTechnologyTime0.0/readT
出现这个错误的原因是,没有加根节点。请看下面的代码:
<?xml version="1.0" encoding="GB2312" standalone="no"?>
<time>//如果这里和结尾的</time>不加,就会出现如题的错误
<monday>
	<playGameTime>5.0</playGameTime>
	<studyTime>3.0</studyTime>
	<readTechnologyTime>0.0</readTechnologyTime>
	<officialTime>0.0</officialTime>
	<otherTime>0.0</otherTime>
	<efficiency>0.0</efficiency>
	<state>ok</state>
</monday><tuesday>
	<playGameTime>5.0</playGameTime>
	<studyTime>3.0</studyTime>
	<readTechnologyTime>0.0</readTechnologyTime>
	<officialTime>0.0</officialTime>
	<otherTime>0.0</otherTime>
	<efficiency>0.0</efficiency>
	<state>ok</state>
</tuesday>
</time>

(编辑:李大同)

【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容!

    推荐文章
      热点阅读