24-22.xsd
上传用户:shuxianled
上传日期:2007-01-18
资源大小:6404k
文件大小:1k
源码类别:

xml/soap/webservice

开发平台:

Others

  1. <?xml version="1.0"?>
  2. <xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema"
  3.   xmlns="http://ibiblio.org/xml/namespace/song"
  4.   targetNamespace="http://ibiblio.org/xml/namespace/song"
  5.   elementFormDefault="qualified"
  6.   attributeFormDefault="unqualified"
  7. >
  8.   <xsd:element name="SONG" type="SongType"/>
  9.   <xsd:complexType name="PhotoType">
  10.     <xsd:attribute name="SRC"    type="xsd:anyURI"
  11.                    use="required" />
  12.     <xsd:attribute name="WIDTH"  type="xsd:positiveInteger"
  13.                    use="required" />
  14.     <xsd:attribute name="HEIGHT" type="xsd:positiveInteger"
  15.                    use="required" />
  16.     <xsd:attribute name="ALT"    type="xsd:string"
  17.                    use="required" />
  18.   </xsd:complexType>
  19.   <xsd:complexType name="SongType">
  20.     <xsd:sequence>
  21.       <xsd:element name="TITLE"     type="xsd:string"/>
  22.       <xsd:element name="PHOTO"     type="PhotoType"/>
  23.       <xsd:element name="COMPOSER"  type="xsd:string"
  24.                    maxOccurs="unbounded"/>
  25.       <xsd:element name="PRODUCER"  type="xsd:string"
  26.                    minOccurs="0" maxOccurs="unbounded"/>
  27.       <xsd:element name="PUBLISHER" type="xsd:string"
  28.                    minOccurs="0"/>
  29.       <xsd:element name="LENGTH"    type="xsd:duration"/>
  30.       <xsd:element name="YEAR"      type="xsd:gYear"/>
  31.       <xsd:element name="ARTIST"    type="xsd:string"
  32.                    maxOccurs="unbounded"/>
  33.     </xsd:sequence>
  34.   </xsd:complexType>
  35. </xsd:schema>