<?xml version="1.0" encoding="utf-8" ?>
<!--Created with Liquid XML Studio 6.1.15.0 (http://www.liquid-technologies.com)-->
<xsd:schema xmlns:aaaa-tp="http://www.rabinsite.org/ediData/Types" xmlns="http://www.rabinsite.org/ediData/spotRadioOrder" xmlns:rdo="http://www.rabinsite.org/ediData/spotRadio" attributeFormDefault="unqualified" elementFormDefault="qualified" targetNamespace="http://www.rabinsite.org/ediData/spotRadioOrder" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
  <xsd:import schemaLocation="spotRadio-0.8.0.4.xsd" namespace="http://www.rabinsite.org/ediData/spotRadio">
    <xsd:annotation>
      <xsd:documentation />
    </xsd:annotation>
  </xsd:import>
  <xsd:import schemaLocation="aaaa-types-0.4.7.xsd" namespace="http://www.rabinsite.org/ediData/Types" />
  <xsd:redefine schemaLocation="aaaaMessageHeader-0.2.0.0.xsd">
    <xsd:annotation>
      <xsd:documentation />
    </xsd:annotation>
    <xsd:simpleType name="schemaNameString">
      <xsd:annotation>
        <xsd:documentation />
      </xsd:annotation>
      <xsd:restriction base="schemaNameString">
        <xsd:enumeration value="SpotRadioOrder" />
      </xsd:restriction>
    </xsd:simpleType>
    <xsd:simpleType name="schemaVersionString">
      <xsd:annotation>
        <xsd:documentation />
      </xsd:annotation>
      <xsd:restriction base="schemaVersionString">
        <xsd:enumeration value="0.8.0.4" />
      </xsd:restriction>
    </xsd:simpleType>
    <xsd:simpleType name="mediaString">
      <xsd:annotation>
        <xsd:documentation />
      </xsd:annotation>
      <xsd:restriction base="mediaString">
        <xsd:enumeration value="SpotRadio" />
      </xsd:restriction>
    </xsd:simpleType>
    <xsd:simpleType name="transactionString">
      <xsd:annotation>
        <xsd:documentation />
      </xsd:annotation>
      <xsd:restriction base="transactionString">
        <xsd:enumeration value="Order" />
      </xsd:restriction>
    </xsd:simpleType>
    <xsd:complexType name="aaaaMessageType">
      <xsd:annotation>
        <xsd:documentation />
      </xsd:annotation>
      <xsd:complexContent mixed="false">
        <xsd:extension base="aaaaMessageType">
          <xsd:sequence>
            <xsd:element ref="rdo:Header" />
            <xsd:element ref="Order" />
          </xsd:sequence>
        </xsd:extension>
      </xsd:complexContent>
    </xsd:complexType>
  </xsd:redefine>
  <xsd:annotation>
    <xsd:documentation />
  </xsd:annotation>
  <xsd:element name="ADID" type="aaaa-tp:adIdType" />
  <xsd:element name="Order">
    <xsd:annotation>
      <xsd:documentation>Single order of this transaction.
 </xsd:documentation>
    </xsd:annotation>
    <xsd:complexType>
      <xsd:sequence>
        <xsd:annotation>
          <xsd:documentation />
        </xsd:annotation>
        <xsd:element name="NationalLocal" type="rdo:nationalLocalType">
          <xsd:annotation>
            <xsd:documentation>Indicates whether the orders are National (i.e. through a rep firm) or local (i.e. internal to a station)</xsd:documentation>
          </xsd:annotation>
        </xsd:element>
        <xsd:element minOccurs="0" name="TargetDemo" type="rdo:DemoRef">
          <xsd:annotation>
            <xsd:documentation>Pointer to the target or primary demo for this order from the list of ratings and impressions</xsd:documentation>
          </xsd:annotation>
        </xsd:element>
        <xsd:element minOccurs="0" maxOccurs="unbounded" name="RatingCategory" type="rdo:ratingType" />
        <xsd:element minOccurs="0" maxOccurs="unbounded" name="ImpressionCategory" type="rdo:impressionType" />
        <xsd:element minOccurs="0" name="Book" type="rdo:bookType" />
        <xsd:element name="OrderStatus" type="rdo:OrderStatus">
          <xsd:annotation>
            <xsd:documentation>Indicates Status Of Order in the Transmission</xsd:documentation>
          </xsd:annotation>
        </xsd:element>
        <xsd:element name="OrderStartDate" type="xsd:date">
          <xsd:annotation>
            <xsd:documentation>Start Date Of Order. All Orders must start on or after the Transaction Start Date. (YYYY-MM-DD)</xsd:documentation>
          </xsd:annotation>
        </xsd:element>
        <xsd:element name="OrderEndDate" type="xsd:date">
          <xsd:annotation>
            <xsd:documentation>End Date Of Order. All Orders must end on or before the Transaction End Date. (YYYY-MM-DD)</xsd:documentation>
          </xsd:annotation>
        </xsd:element>
        <xsd:element minOccurs="0" default="Mo" name="WeekStartDay" type="aaaa-tp:dayOfWeekType">
          <xsd:annotation>
            <xsd:documentation>Specifies the start of the Bill week, Mo for a normal broadcast week</xsd:documentation>
          </xsd:annotation>
        </xsd:element>
        <xsd:element minOccurs="0" maxOccurs="unbounded" name="OrderComment" type="aaaa-tp:commentType">
          <xsd:annotation>
            <xsd:documentation />
          </xsd:annotation>
        </xsd:element>
        <xsd:element minOccurs="0" name="TermsOfSale" type="aaaa-tp:commentType" />
        <xsd:element maxOccurs="unbounded" ref="BuyLine">
          <xsd:annotation>
            <xsd:documentation>Individual line in the station order
 </xsd:documentation>
          </xsd:annotation>
        </xsd:element>
      </xsd:sequence>
      <xsd:attribute name="version" type="xsd:nonNegativeInteger" use="required">
        <xsd:annotation>
          <xsd:documentation>Count of order modifications</xsd:documentation>
        </xsd:annotation>
      </xsd:attribute>
      <xsd:attribute name="revision" type="xsd:nonNegativeInteger" use="optional">
        <xsd:annotation>
          <xsd:documentation>Count of order confirmations</xsd:documentation>
        </xsd:annotation>
      </xsd:attribute>
      <xsd:attribute default="N" name="unwired" type="aaaa-tp:yesNoType" use="optional">
        <xsd:annotation>
          <xsd:documentation>When using a rep firm, indicates whether the orders are through a single point of contact at rep or through individual spot rep Account Executives.  Unwired also implies consolidated invoicing by the rep firm.</xsd:documentation>
        </xsd:annotation>
      </xsd:attribute>
    </xsd:complexType>
    <xsd:unique name="BuyLineNumber">
      <xsd:selector xpath="BuyLine" />
      <xsd:field xpath="BuyLineNumber" />
    </xsd:unique>
  </xsd:element>
  <xsd:element name="BuyLine">
    <xsd:annotation>
      <xsd:documentation>Individual line in the station order
 </xsd:documentation>
    </xsd:annotation>
    <xsd:complexType>
      <xsd:sequence>
        <xsd:element name="BuyLineNumber" type="xsd:positiveInteger">
          <xsd:annotation>
            <xsd:documentation>Unique identifier for the BuyLine</xsd:documentation>
          </xsd:annotation>
        </xsd:element>
        <xsd:element minOccurs="0" name="Program" type="xsd:string">
          <xsd:annotation>
            <xsd:documentation>Name of Program airing when spot is shown</xsd:documentation>
          </xsd:annotation>
        </xsd:element>
        <xsd:element name="SpotLength" type="xsd:nonNegativeInteger">
          <xsd:annotation>
            <xsd:documentation>Length of Spots to Air in Seconds</xsd:documentation>
          </xsd:annotation>
        </xsd:element>
        <xsd:element minOccurs="0" name="SpotType" type="xsd:string">
          <xsd:annotation>
            <xsd:documentation>Type of Spot (i.e. Political, Promo, PSA, ...)</xsd:documentation>
          </xsd:annotation>
        </xsd:element>
        <xsd:element minOccurs="0" name="StartDate" type="xsd:date">
          <xsd:annotation>
            <xsd:documentation>Earliest Date Spots Can Air (must be greater than or equal to Order Start Date)</xsd:documentation>
          </xsd:annotation>
        </xsd:element>
        <xsd:element minOccurs="0" name="EndDate" type="xsd:date">
          <xsd:annotation>
            <xsd:documentation>Latest Date Spots can Air (must be less than or equal to Order End Date)</xsd:documentation>
          </xsd:annotation>
        </xsd:element>
        <xsd:element minOccurs="0" name="Daypart" type="rdo:Daypart">
          <xsd:annotation>
            <xsd:documentation>Daypart definition</xsd:documentation>
          </xsd:annotation>
        </xsd:element>
        <xsd:element maxOccurs="unbounded" name="DayTime" type="rdo:DayTime">
          <xsd:annotation>
            <xsd:documentation>Buyline Day/Times to support orbits</xsd:documentation>
          </xsd:annotation>
        </xsd:element>
        <xsd:choice>
          <xsd:sequence>
            <xsd:annotation>
              <xsd:documentation>This sequence is the defintion which should be used for weekly buys</xsd:documentation>
            </xsd:annotation>
            <xsd:element name="RotationDays" type="aaaa-tp:daysOfWeekType">
              <xsd:annotation>
                <xsd:documentation>Indicates the days which are valid for spots to run for this buy, used with WeeklyBuyPeriod</xsd:documentation>
              </xsd:annotation>
            </xsd:element>
            <xsd:element maxOccurs="unbounded" name="WeeklyBuyPeriod">
              <xsd:complexType>
                <xsd:complexContent mixed="false">
                  <xsd:extension base="BuyPeriodType">
                    <xsd:sequence>
                      <xsd:element name="WeeklySpots" type="xsd:nonNegativeInteger">
                        <xsd:annotation>
                          <xsd:documentation>Number of Spots per week for this buy period.</xsd:documentation>
                        </xsd:annotation>
                      </xsd:element>
                    </xsd:sequence>
                  </xsd:extension>
                </xsd:complexContent>
              </xsd:complexType>
            </xsd:element>
          </xsd:sequence>
          <xsd:sequence>
            <xsd:annotation>
              <xsd:documentation>This sequence is the defintion which should be used for Daily buys</xsd:documentation>
            </xsd:annotation>
            <xsd:element maxOccurs="unbounded" name="DailyBuyPeriod">
              <xsd:complexType>
                <xsd:complexContent mixed="false">
                  <xsd:extension base="BuyPeriodType">
                    <xsd:sequence>
                      <xsd:element name="DailySpots">
                        <xsd:complexType>
                          <xsd:annotation>
                            <xsd:documentation>Define the spots per week for each day.  In other words the fixed spot count for each the day for each week within the period.</xsd:documentation>
                          </xsd:annotation>
                          <xsd:sequence>
                            <xsd:element name="Monday" type="xsd:nonNegativeInteger" />
                            <xsd:element name="Tuesday" type="xsd:nonNegativeInteger" />
                            <xsd:element name="Wednesday" type="xsd:nonNegativeInteger" />
                            <xsd:element name="Thursday" type="xsd:nonNegativeInteger" />
                            <xsd:element name="Friday" type="xsd:nonNegativeInteger" />
                            <xsd:element name="Saturday" type="xsd:nonNegativeInteger" />
                            <xsd:element name="Sunday" type="xsd:nonNegativeInteger" />
                          </xsd:sequence>
                        </xsd:complexType>
                      </xsd:element>
                    </xsd:sequence>
                  </xsd:extension>
                </xsd:complexContent>
              </xsd:complexType>
            </xsd:element>
          </xsd:sequence>
        </xsd:choice>
        <xsd:element minOccurs="0" maxOccurs="unbounded" name="HiatusPeriod">
          <xsd:complexType>
            <xsd:annotation>
              <xsd:documentation>Weeks/Days Spots should not air. This information may not be processed by the recieving system but is here for future functionality.</xsd:documentation>
            </xsd:annotation>
            <xsd:sequence>
              <xsd:element name="StartDate" type="xsd:date">
                <xsd:annotation>
                  <xsd:documentation>Start Date Of Hiatus Period (must be greater than or equal to BuyLine StartDate)</xsd:documentation>
                </xsd:annotation>
              </xsd:element>
              <xsd:element name="EndDate" type="xsd:date">
                <xsd:annotation>
                  <xsd:documentation>End Date Of Hiatus Period (must be less than or equal to BuyLine EndDate)</xsd:documentation>
                </xsd:annotation>
              </xsd:element>
            </xsd:sequence>
          </xsd:complexType>
        </xsd:element>
        <xsd:element minOccurs="0" maxOccurs="unbounded" name="Comment" type="aaaa-tp:commentType" />
      </xsd:sequence>
      <xsd:attribute name="tradeFlag" use="required">
        <xsd:annotation>
          <xsd:documentation>Specifies whether the line is considered a cash line or a trade</xsd:documentation>
        </xsd:annotation>
        <xsd:simpleType>
          <xsd:restriction base="xsd:string">
            <xsd:enumeration value="Cash" />
            <xsd:enumeration value="Trade" />
          </xsd:restriction>
        </xsd:simpleType>
      </xsd:attribute>
    </xsd:complexType>
  </xsd:element>
  <xsd:complexType name="BuyPeriodType">
    <xsd:annotation>
      <xsd:documentation>Weeks/Days Spots should air.
 </xsd:documentation>
    </xsd:annotation>
    <xsd:sequence>
      <xsd:element name="StartDate" type="xsd:date">
        <xsd:annotation>
          <xsd:documentation>Start Date Of Buy Period (must be greater than or equal to BuyLine StartDate)</xsd:documentation>
        </xsd:annotation>
      </xsd:element>
      <xsd:element name="EndDate" type="xsd:date">
        <xsd:annotation>
          <xsd:documentation>End Date Of Buy Period (must be less than or equal to BuyLine EndDate)</xsd:documentation>
        </xsd:annotation>
      </xsd:element>
      <xsd:element name="Rate" type="aaaa-tp:costType">
        <xsd:annotation>
          <xsd:documentation>Rate per spot</xsd:documentation>
        </xsd:annotation>
      </xsd:element>
    </xsd:sequence>
  </xsd:complexType>
</xsd:schema>
