<xs:schema version="1.0" xmlns:hi5="http://api.hi5.com/" xmlns:xs="http://www.w3.org/2001/XMLSchema">
  <xs:import namespace="http://api.hi5.com/" schemaLocation="hi5.xsd"/>
  <xs:element name="albums" type="albums"/>
  <xs:complexType name="album">
    <xs:annotation>
      <xs:documentation>
        <![CDATA[A hi5 photo album.]]>
      </xs:documentation>
    </xs:annotation>
    <xs:sequence>
      <xs:element name="item" type="hi5:photo" minOccurs="0" maxOccurs="unbounded">
        <xs:annotation>
          <xs:documentation>
            <![CDATA[Details for photos in this album, see type photo]]>
          </xs:documentation>
        </xs:annotation>
      </xs:element>
    </xs:sequence>
    <xs:attribute name="id" type="xs:int">
      <xs:annotation>
        <xs:documentation>
          <![CDATA[Unique identifier for this album]]>
        </xs:documentation>
      </xs:annotation>
    </xs:attribute>
    <xs:attribute name="name" type="xs:string">
      <xs:annotation>
        <xs:documentation>
          <![CDATA[Name of the album]]>
        </xs:documentation>
      </xs:annotation>
    </xs:attribute>
    <xs:attribute name="preview" type="xs:string">
      <xs:annotation>
        <xs:documentation>
          <![CDATA[URL for a preview image from this album]]>
        </xs:documentation>
      </xs:annotation>
    </xs:attribute>
  </xs:complexType>
  <xs:complexType name="albums">
    <xs:annotation>
      <xs:documentation>
        <![CDATA[A collection of hi5 photo albums. This collection contains 1 or more elements of type Album each of which contains 1 or more elements]]>
<![CDATA[of type Photo. A sample XML document for a collection of albums:]]>
<![CDATA[<br/><br/>]]>
<![CDATA[<code>]]>
<![CDATA[&lt;albums&gt;]]>
<![CDATA[&lt;album id="123" name="hi5 Album" preview="http://path/to/preview/photo" count="2"&gt;]]>
<![CDATA[&lt;item description="photo 1" img="http://path/to/photo1/thumbnail" url="http://path/to/photo1/full_size" /&gt;]]>
<![CDATA[&lt;item description="photo 2" img="http://path/to/photo2/thumbnail" url="http://path/to/photo2/full_size" /&gt;]]>
<![CDATA[&lt;/album&gt;]]>
<![CDATA[...]]>
<![CDATA[&lt;/albums&gt;]]>
<![CDATA[</code>]]>
      </xs:documentation>
    </xs:annotation>
    <xs:sequence>
      <xs:element name="album" type="album" minOccurs="0" maxOccurs="unbounded">
        <xs:annotation>
          <xs:documentation>
            <![CDATA[Details for a photo albums in this collection]]>
          </xs:documentation>
        </xs:annotation>
      </xs:element>
    </xs:sequence>
  </xs:complexType>
</xs:schema>
