code snippet:
CREATE XML SCHEMA COLLECTION MovieSchema AS N'<?xml version="1.0" encoding="UTF-16"?>
<xs:schema xmlns="http://schemas.sqlservercentral.com/MovieSchema"
xmlns:xs="http://www.w3.org/2001/XMLSchema">



<xs:element name="movies">

<xs:complexType>
<xs:sequence>
<xs:element name="film" minOccurs="1" maxOccurs="unbounded">


<xs:complexType>
<xs:sequence>
<xs:element name="name" minOccurs="1" maxOccurs="1" type="xs:string"/>
<xs:element name="releaseDate" minOccurs="1" maxOccurs="1" type="xs:date"/>
<xs:element name="gross" minOccurs="1" maxOccurs="1" type="xs:decimal"/>
<xs:element name="director" minOccurs="1" maxOccurs="1" type="xs:string"/>
</xs:sequence>

<xs:attribute name="disctype" type="xs:string"/>
<xs:attribute name="category" type="xs:string"/>

</xs:complexType>
</xs:element>
</xs:sequence>

</xs:complexType>
</xs:element>
</xs:schema>';
GO

this works well but i'm unable to add schema for a attribute called "status" to element "releaseDate".

I'm able to add disctype,category to element "film", can anybody suggest/help what i'm missing with.

Thanks in advance.