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

时间:2017-03-01 11:11:48   收藏:0   阅读:5300

<?xml version="1.0" encoding="utf-8"?>


<person>//这里是根元素,必须要有,否则会报错

  <birthday class="object">

    <day type="string">17</day>

    <month type="string">12</month>

    <year type="string">1970</year>

  </birthday>

  <gender type="string">male</gender>

  <name type="string">zhaipuhong</name>

</person>


//没有根元素,就会报上面的错。

本文出自 “JianBo” 博客,转载请与作者联系!

原文:http://jianboli.blog.51cto.com/12075002/1902163

评论(0
© 2014 bubuko.com 版权所有 - 联系我们:wmxa8@hotmail.com
打开技术之扣,分享程序人生!