XML:无法在这个文件实例内定位参考到被支持的schema类型(DTD,W3C格式)
我的xsd:
<?xml version="1.0" encoding="UTF-8"?>
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema"
xmlns:hk="http://www.xujc.com/hk">
<xs:element name="book">
<xs:complexType>
<xs:sequence>
<xs:element name="title" type="xs:string"/>
<xs:element name="author" type="xs:string"/>
<xs:element name="price" type="xs:string"/>
<xs:element name="resume" type="xs:string"/>
<xs:element name="recommendation" type="xs:string"/>
<xs:element name="publish" minOccurs="0" maxOccurs="unbounded">
<xs:complexType>
<xs:sequence>
<xs:element name="publisher" type="xs:string"/>
<xs:element name="pubdate" type="xs:string"/>
</xs:sequence>
</xs:complexType>
</xs:element>
</xs:sequence>
<xs:attribute name="isbn" type="xs:string"/>
</xs:complexType>
</xs:element>
</xs:schema>
我的xml:
<?xml version="1.0" encoding="UTF-8"?>
<hk:book isbn="0-764-58007-8" xmlns:hk="http://www.xujc.com/hk"
xmlns="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://www.xujc.com/hk text11.xsd"
>
<hk:title>三国演义</hk:title>
<hk:author>罗贯中</hk:author>
<hk:price>80</hk:price>
<hk:resume>滚滚长江东逝水,浪花淘尽英雄...都付笑谈中。</hk:resume>
<hk:recommendation>经典好书</hk:recommendation>
<hk:publish>
<hk:publisher>文艺出版社</hk:publisher>
<hk:pubdate>1998-10-01</hk:pubdate>
</hk:publish>
</hk:book>