您的位置:首页 > 其它

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

2015-08-14 21:30 645 查看
出现这个错误的原因是,没有加根节点。请看下面的代码:
<?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>
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: