日期:2014-05-18  浏览次数:20626 次

这个XML代码,为什么老是报错呢
<?xml version="1.0" encoding="utf-8"?>
<books xmlns:subject="http://www.itzcn.com/xmlns-booksubjectM " xmlns:content="urn:xml一book:bookcontent">
  〈subject:book bookname="Oracle DBA快速入门">
  〈subject:description〉从零基础开始学习Oracle DBA知识,30天可以系统掌握DBA 知识
  </subject:description>
</subject:book>

  〈content:book bookname="XML基础教程">
  〈content:description〉讲述XML基本知识的入门级教程〈/content:description〉
  〈content:page>460pages</content:page>
  </content:book>
</books>


红色的,都报错,说:应为结束标记</books>,不是已经有结束标记</books>了吗?


------解决方案--------------------
〈subject:book bookname="Oracle DBA快速入门">
左括号写错了。下面还有好几个。
------解决方案--------------------
左右括号都有写得错,给你个更改好的,直接赋值粘贴进去举行了:
XML code
<?xml version="1.0" encoding="utf-8"?>
<books xmlns:subject="http://www.itzcn.com/xmlns-booksubjectM " xmlns:content="urn:xml一book:bookcontent">
    <subject:book bookname="Oracle DBA快速入门">
        <subject:description>
            从零基础开始学习Oracle DBA知识,30天可以系统掌握DBA 知识
        </subject:description>
    </subject:book>

    <content:book bookname="XML基础教程">
        <content:description〉讲述XML基本知识的入门级教程〈/content:description〉
        <content:page>460pages</content:page>
    </content:book>
</books>

------解决方案--------------------
探讨

左右括号都有写得错,给你个更改好的,直接赋值粘贴进去举行了:
XML code
<?xml version="1.0" encoding="utf-8"?>
<books xmlns:subject="http://www.itzcn.com/xmlns-booksubjectM " xmlns:content="urn:xml一book:bookcontent">
<subject……