<xs:complexType name="SoundRecording">
      <xs:annotation>
         <xs:documentation source="ddex:Definition">A Composite containing details of a SoundRecording.</xs:documentation>
      </xs:annotation>
      <xs:sequence>
         <xs:element name="SoundRecordingType" minOccurs="0" type="mlc:SoundRecordingType">
            <xs:annotation>
               <xs:documentation source="ddex:Definition">A Composite containing details of the Type of the SoundRecording.</xs:documentation>
            </xs:annotation>
         </xs:element>
         <xs:element name="IsArtistRelated" minOccurs="0" type="xs:boolean">
            <xs:annotation>
               <xs:documentation source="ddex:Definition">The Flag indicating whether the SoundRecording is related to an Artist (=true) or not (=false).</xs:documentation>
            </xs:annotation>
         </xs:element>
         <xs:element name="SoundRecordingId" maxOccurs="unbounded" type="mlc:SoundRecordingId">
            <xs:annotation>
               <xs:documentation source="ddex:Definition">A Composite containing details of a SoundRecordingId.</xs:documentation>
            </xs:annotation>
         </xs:element>
         <xs:element name="AssociatedSoundRecordingId" minOccurs="0" maxOccurs="unbounded"
            type="mlc:SoundRecordingId">
            <xs:annotation>
               <xs:documentation source="ddex:Definition">A Composite containing details of a SoundRecordingId that is associated with the SoundRecording such as an Identifier believed to be duplicate or grouped with the 'attested' identifier in VRDB2.</xs:documentation>
            </xs:annotation>
         </xs:element>
         <xs:element name="MusicalWorkId" minOccurs="0" maxOccurs="unbounded"
            type="mlc:MusicalWorkId">
            <xs:annotation>
               <xs:documentation source="ddex:Definition">A Composite containing details of a MusicalWorkId of a MusicalWork used in the SoundRecording.</xs:documentation>
            </xs:annotation>
         </xs:element>
         <xs:element name="ResourceReference">
            <xs:annotation>
               <xs:documentation source="ddex:Definition">The Identifier (specific to the Message) of the SoundRecording within the Release which contains it. This is a LocalResourceAnchor starting with the letter A.</xs:documentation>
            </xs:annotation>
            <xs:simpleType>
               <xs:restriction base="xs:ID">
                  <xs:pattern value="A[\d\-_a-zA-Z]+"/>
               </xs:restriction>
            </xs:simpleType>
         </xs:element>
         <xs:element name="ReferenceTitle" type="mlc:ReferenceTitle">
            <xs:annotation>
               <xs:documentation source="ddex:Definition">A Composite containing details of the ReferenceTitle of the SoundRecording.</xs:documentation>
            </xs:annotation>
         </xs:element>
         <xs:element name="VersionType" minOccurs="0" maxOccurs="unbounded" type="mlc:VersionType">
            <xs:annotation>
               <xs:documentation source="ddex:Definition">A Composite containing details of a Type of Version of the SoundRecording. </xs:documentation>
            </xs:annotation>
         </xs:element>
         <xs:element name="InstrumentationDescription" minOccurs="0" type="mlc:Description">
            <xs:annotation>
               <xs:documentation source="ddex:Definition">A Composite containing a Description of the Type of instrumentation of the MusicalWork(s) in the SoundRecording.</xs:documentation>
            </xs:annotation>
         </xs:element>
         <xs:element name="Keywords" minOccurs="0" maxOccurs="unbounded" type="mlc:Keywords">
            <xs:annotation>
               <xs:documentation source="ddex:Definition">A Composite containing details of a Description of the SoundRecording containing Keywords.</xs:documentation>
            </xs:annotation>
         </xs:element>
         <xs:element name="Synopsis" minOccurs="0" type="mlc:Synopsis">
            <xs:annotation>
               <xs:documentation source="ddex:Definition">A Composite containing details of a Synopsis of the SoundRecording.</xs:documentation>
            </xs:annotation>
         </xs:element>
         <xs:element name="IsMedley" minOccurs="0" type="xs:boolean">
            <xs:annotation>
               <xs:documentation source="ddex:Definition">The Flag indicating whether the SoundRecording is a Medley (=true) or not (=false).</xs:documentation>
            </xs:annotation>
         </xs:element>
         <xs:element name="IsPotpourri" minOccurs="0" type="xs:boolean">
            <xs:annotation>
               <xs:documentation source="ddex:Definition">The Flag indicating whether the SoundRecording is a Potpourri (=true) or not (=false).</xs:documentation>
            </xs:annotation>
         </xs:element>
         <xs:element name="IsInstrumental" minOccurs="0" type="xs:boolean">
            <xs:annotation>
               <xs:documentation source="ddex:Definition">The Flag indicating whether the SoundRecording is instrumental (=true) or not (=false).</xs:documentation>
            </xs:annotation>
         </xs:element>
         <xs:element name="IsBackground" minOccurs="0" type="xs:boolean">
            <xs:annotation>
               <xs:documentation source="ddex:Definition">The Flag indicating whether the SoundRecording is used as background to other audio or audio-visual material (=true) or not (=false).</xs:documentation>
            </xs:annotation>
         </xs:element>
         <xs:element name="IsHiddenResource" minOccurs="0" type="xs:boolean">
            <xs:annotation>
               <xs:documentation source="ddex:Definition">The Flag indicating whether the SoundRecording is hidden in some way from the Consumer (=true) or not (=false).</xs:documentation>
            </xs:annotation>
         </xs:element>
         <xs:element name="IsBonusResource" minOccurs="0" type="xs:boolean">
            <xs:annotation>
               <xs:documentation source="ddex:Definition">The Flag indicating whether the SoundRecording is additional to those on the original Release of which this is a Version (=true) or not (=false). This element is deprecated. DDEX advises that it may be removed at a future date and therefore recommends against using it. The IsBonusResource element in ResourceGroupContentItem should be used instead.</xs:documentation>
            </xs:annotation>
         </xs:element>
         <xs:element name="IsComputerGenerated" minOccurs="0" type="xs:boolean">
            <xs:annotation>
               <xs:documentation source="ddex:Definition">The Flag indicating whether the SoundRecording is generated by a computer (=true) or not (=false).</xs:documentation>
            </xs:annotation>
         </xs:element>
         <xs:element name="NoSilenceBefore" minOccurs="0" type="xs:boolean">
            <xs:annotation>
               <xs:documentation source="ddex:Definition">The Flag indicating whether the SoundRecording is preceded by a period of silence (=false) or not (=true). </xs:documentation>
            </xs:annotation>
         </xs:element>
         <xs:element name="NoSilenceAfter" minOccurs="0" type="xs:boolean">
            <xs:annotation>
               <xs:documentation source="ddex:Definition">The Flag indicating whether the SoundRecording is followed by a period of silence (=false) or not (=true). </xs:documentation>
            </xs:annotation>
         </xs:element>
         <xs:element name="ContainsSamples" minOccurs="0" type="xs:boolean">
            <xs:annotation>
               <xs:documentation source="ddex:Definition">The Flag indicating whether the SoundRecording contains samples (=true) or not (=false).</xs:documentation>
            </xs:annotation>
         </xs:element>
         <xs:element name="SampledSoundRecording" minOccurs="0" maxOccurs="unbounded"
            type="mlc:SampledSoundRecording">
            <xs:annotation>
               <xs:documentation source="ddex:Definition">A Composite containing details of a sampled SoundRecording.</xs:documentation>
            </xs:annotation>
         </xs:element>
         <xs:element name="LanguageOfPerformance" minOccurs="0" type="avs:IsoLanguageCode">
            <xs:annotation>
               <xs:documentation source="ddex:Definition">The Language of the Performance recorded in the SoundRecording (represented by an ISO 639 LanguageCode).</xs:documentation>
            </xs:annotation>
         </xs:element>
         <xs:element name="Duration" type="xs:duration">
            <xs:annotation>
               <xs:documentation source="ddex:Definition">The Duration of the SoundRecording (using the ISO 8601:2004 PT[[hhH]mmM]ssS format, where lower case characters indicate variables, upper case characters are part of the xs:string, e.g. one hour, two minutes and three seconds would be PT1H2M3S). The seconds section ss may include fractions (e.g. one minute and 30.5 seconds would be PT1M30.5S).</xs:documentation>
            </xs:annotation>
         </xs:element>
         <xs:element name="SoundRecordingCollectionReferenceList" minOccurs="0"
            type="mlc:SoundRecordingCollectionReferenceList">
            <xs:annotation>
               <xs:documentation source="ddex:Definition">A Composite containing details of one or more Collections. The referenced Collection has to be of CollectionType AudioChapter. (Note: this Composite is not required for communication to Music Licensing Companies but is included in this Message to maintain compatibility to the Release Notification Message Suite Standard.)</xs:documentation>
            </xs:annotation>
         </xs:element>
         <xs:element name="ResourceMusicalWorkReferenceList" minOccurs="0"
            type="mlc:ResourceMusicalWorkReferenceList">
            <xs:annotation>
               <xs:documentation source="ddex:Definition">A Composite containing details of one or more MusicalWorks contained in the SoundRecording. (Note: this Composite is not required for communication to Music Licensing Companies but is included in this Message to maintain compatibility to the Release Notification Message Suite Standard.)</xs:documentation>
            </xs:annotation>
         </xs:element>
         <xs:element name="ResourceContainedResourceReferenceList" minOccurs="0"
            type="mlc:ResourceContainedResourceReferenceList">
            <xs:annotation>
               <xs:documentation source="ddex:Definition">A Composite containing details of ResourceContainedResourceReferences referring to a Resource that is contained in the current SoundRecording. (Note: this Composite is not required for communication to Music Licensing Companies but is included in this Message to maintain compatibility to the Release Notification Message Suite Standard.)</xs:documentation>
            </xs:annotation>
         </xs:element>
         <xs:element name="CreationDate" minOccurs="0" type="mlc:EventDateWithTerritoryCode">
            <xs:annotation>
               <xs:documentation source="ddex:Definition">A Composite containing details of the Date and Place of the Event in which the SoundRecording was created. This is a string with the syntax YYYY[-MM[-DD]].</xs:documentation>
            </xs:annotation>
         </xs:element>
         <xs:element name="MasteredDate" minOccurs="0" type="mlc:EventDateWithTerritoryCode">
            <xs:annotation>
               <xs:documentation source="ddex:Definition">A Composite containing details of the Date and Place of the Event in which the SoundRecording was originally mastered (in either analogue or digital form). This is a string with the syntax YYYY[-MM[-DD]].</xs:documentation>
            </xs:annotation>
         </xs:element>
         <xs:element name="RemasteredDate" minOccurs="0" type="mlc:EventDateWithTerritoryCode">
            <xs:annotation>
               <xs:documentation source="ddex:Definition">A Composite containing details of the Date and Place of the Event in which the SoundRecording was re-mastered (usually digitally). This is a string with the syntax YYYY[-MM[-DD]].</xs:documentation>
            </xs:annotation>
         </xs:element>
         <xs:element name="SoundRecordingDetailsByTerritory" maxOccurs="unbounded"
            type="mlc:SoundRecordingDetailsByTerritory">
            <xs:annotation>
               <xs:documentation source="ddex:Definition">A Composite containing details of Descriptors and other attributes of the SoundRecording which may vary according to Territory.</xs:documentation>
            </xs:annotation>
         </xs:element>
         <xs:element name="InitialProducer" minOccurs="0" maxOccurs="unbounded" type="mlc:Party">
            <xs:annotation>
               <xs:documentation source="ddex:Definition">A Composite containing details of an InitialProducer for the SoundRecording, which is a Party that initiates the creation of the SoundRecording and is sometimes referred to as a commissioning rights holder. An InitialProducer may be a Person or an Organization and the term contrasts with the role of a StudioProducer. An InitialProducer may be described through Name and Identifier.</xs:documentation>
            </xs:annotation>
         </xs:element>
         <xs:element name="TechnicalSoundRecordingDetails" minOccurs="0" maxOccurs="unbounded"
            type="mlc:TechnicalSoundRecordingDetails">
            <xs:annotation>
               <xs:documentation source="ddex:Definition">A Composite containing technical details of the SoundRecording.</xs:documentation>
            </xs:annotation>
         </xs:element>
         <xs:element name="NumberOfFeaturedPerformingContributors" minOccurs="0" type="xs:integer">
            <xs:annotation>
               <xs:documentation source="ddex:Definition">The number of featured Contributors associated with the SoundRecording.</xs:documentation>
            </xs:annotation>
         </xs:element>
         <xs:element name="NumberOfNonFeaturedPerformingContributors" minOccurs="0"
            type="xs:integer">
            <xs:annotation>
               <xs:documentation source="ddex:Definition">The number of non-featured Contributors associated with the SoundRecording.</xs:documentation>
            </xs:annotation>
         </xs:element>
         <xs:element name="LineUpComplete" minOccurs="0" type="xs:boolean">
            <xs:annotation>
               <xs:documentation source="ddex:Definition">The Flag indicating whether the line up is complete (=true) or not (=false).</xs:documentation>
            </xs:annotation>
         </xs:element>
         <xs:element name="NumberOfMainCharacters" minOccurs="0" type="xs:integer">
            <xs:annotation>
               <xs:documentation source="ddex:Definition">The number of MainCharacters associated with the SoundRecording.</xs:documentation>
            </xs:annotation>
         </xs:element>
         <xs:element name="MainCharacterLineUpComplete" minOccurs="0" type="xs:boolean">
            <xs:annotation>
               <xs:documentation source="ddex:Definition">The Flag indicating whether the line up of MainCharacters is complete (=true) or not (=false). If no value is provided, no information about completeness is available.</xs:documentation>
            </xs:annotation>
         </xs:element>
         <xs:element name="NumberOfSupportingCharacters" minOccurs="0" type="xs:integer">
            <xs:annotation>
               <xs:documentation source="ddex:Definition">The number of SupportingCharacters associated with the SoundRecording.</xs:documentation>
            </xs:annotation>
         </xs:element>
         <xs:element name="SupportingCharacterLineUpComplete" minOccurs="0" type="xs:boolean">
            <xs:annotation>
               <xs:documentation source="ddex:Definition">The Flag indicating whether the line up of SupportingCharacters is complete (=true) or not (=false). If no value is provided, no information about completeness is available.</xs:documentation>
            </xs:annotation>
         </xs:element>
         <xs:element name="NumberOfOtherCharacters" minOccurs="0" type="xs:integer">
            <xs:annotation>
               <xs:documentation source="ddex:Definition">The number of OtherCharacters associated with the SoundRecording.</xs:documentation>
            </xs:annotation>
         </xs:element>
         <xs:element name="OtherCharacterLineUpComplete" minOccurs="0" type="xs:boolean">
            <xs:annotation>
               <xs:documentation source="ddex:Definition">The Flag indicating whether the line up of OtherCharacters is complete (=true) or not (=false). If no value is provided, no information about completeness is available.</xs:documentation>
            </xs:annotation>
         </xs:element>
      </xs:sequence>
      <xs:attribute name="IsUpdated" type="xs:boolean">
         <xs:annotation>
            <xs:documentation source="ddex:Definition">The Flag indicating whether the SoundRecording Element was updated (=true) or not (=false). When this Boolean Flag is set to true, the MessageRecipient is expected to replace any previously provided SoundRecording data with the now provided data. This attribute is deprecated. DDEX advises that it may be removed at a future date and therefore recommends against using it.</xs:documentation>
         </xs:annotation>
      </xs:attribute>
      <xs:attribute name="LanguageAndScriptCode" type="xs:string">
         <xs:annotation>
            <xs:documentation source="ddex:Definition">The Language and script for the Elements of the SoundRecording as defined in IETF RfC 5646. The default is the same as indicated for the containing composite. Language and Script are provided as lang[-script][-region][-variant]. This is represented in an XML schema as an XML Attribute.</xs:documentation>
         </xs:annotation>
      </xs:attribute>
      <xs:attribute name="RecordLastUpdatedDate" type="mlc:ddex_IsoDate">
         <xs:annotation>
            <xs:documentation source="ddex:Definition">A Date that specifies the last time a record was changed, so that a recipient can decide when they ingest the record if they need to update their local system data. This is a string with the syntax YYYY[-MM[-DD]]. This is represented in an XML schema as an XML Attribute.</xs:documentation>
         </xs:annotation>
      </xs:attribute>
      <xs:attribute name="RepertoireManagerCode" type="xs:string">
         <xs:annotation>
            <xs:documentation source="ddex:Definition">An Identifier of a society that is repertoire manager of the metadata for the SoundRecording in VRDB2 (the Virtual Recording Database operated by SCAPR). This is represented in an XML schema as an XML Attribute.</xs:documentation>
         </xs:annotation>
      </xs:attribute>
      <xs:attribute name="MetadataIsUnderReview" type="xs:boolean">
         <xs:annotation>
            <xs:documentation source="ddex:Definition">The Flag indicating whether information in this SoundRecording composite is subject to a Dispute that is currently being resolved (=true) or not (=false). This is represented in an XML schema as an XML Attribute.</xs:documentation>
         </xs:annotation>
      </xs:attribute>
      <xs:attribute name="MetadataIsAccessRestricted" type="xs:boolean">
         <xs:annotation>
            <xs:documentation source="ddex:Definition">The Flag indicating to the recipient whether information in this SoundRecording composite is restricted in the context of communications with the VRDB2 (=true) or not (=false). This is represented in an XML schema as an XML Attribute.</xs:documentation>
         </xs:annotation>
      </xs:attribute>
   </xs:complexType>