<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" targetNamespace="urn:yahoo:merchinfo" xmlns="urn:yahoo:merchinfo" elementFormDefault="qualified">
 <xs:element name="MerchantResultSet">
  <xs:complexType>
   <xs:sequence>
    <xs:element name="Merchant" type="MerchantType" maxOccurs="300"/>
   </xs:sequence>
  </xs:complexType>
 </xs:element>
 <xs:complexType name="MerchantType">
  <xs:sequence>
   <xs:element name="Name" type="xs:string"/>
   <xs:element name="Rating" type="RatingType" minOccurs="0"/>
   <xs:element name="IsCertifiedMerchant" type="xs:boolean"/>
   <xs:element name="InfoUrl" type="xs:string"/>
  </xs:sequence>
  <xs:attribute name="ID" type="xs:integer" use="required"/>
 </xs:complexType>
 <xs:complexType name="RatingType">
   <xs:sequence>
    <xs:element name="MaxRating" type="RatingValueType"/>
    <xs:element name="NumRatings" type="xs:nonNegativeInteger"/>
    <xs:element name="OverallRating" type="RatingValueType"/>
    <xs:element name="PriceSatisfactionRating" type="RatingValueType"/>
    <xs:element name="ShippingOptionsRating" type="RatingValueType"/>
    <xs:element name="TimelyDeliveryRating" type="RatingValueType"/>
    <xs:element name="EaseOfPurchaseRating" type="RatingValueType"/>
    <xs:element name="CustomerServiceRating" type="RatingValueType"/>
    <xs:element name="RatingUrl" type="xs:string"/>
   </xs:sequence>
 </xs:complexType>
 <xs:simpleType name="RatingValueType">
  <xs:restriction base="xs:decimal">
   <xs:minInclusive value="0"/>
   <xs:maxInclusive value="5"/>
  </xs:restriction>
 </xs:simpleType>
</xs:schema>
