1<?xml version="1.0"?> 2<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" 3xmlns="www.novels.com" 4xsi:schemaLocation=""www.novels.com" novels.xsd" > 5 6 7 8<xs:element name="novel" type="novelType" /> 9 10<xs:complexType name="novelType"> 11 <xs:sequence maxOccurs ="3" minOccurs="1"> 12 <xs:element name="mystery" type="xs:string"/> 13 <xs:element name="links" type="linksType"/> 14 </xs:sequence> 15</xs:complexType> 16 17<xs:simpleType name="linksType"> 18 <xs:restriction base="xs:anyURI"> 19 <xs:enumeration value="http://www.links.com"/> 20 <xs:enumeration value="http://www.mystery.com"/> 21 <xs:enumeration value="http://www.hitchcock.com"/> 22 </xs:restriction> 23</xs:simpleType> 24 25</xs:schema> 26 27