Hi,
You specify the uniqueness constraint on the element, not the type. For
example, if you had an element named "Number" with that type, and you
wanted its value to be unique within the scope of its parent element
"listOfNumbers" , it would look something like this:
<xs:element name="listOfNum bers">
<xs:complexType >
<xs:sequence>
<xs:element name="Number" type="ResultArr ayType"
maxOccurs="unbo unded"/>
</xs:sequence>
</xs:complexType>
<xs:unique name="uniqueNum ">
<xs:selector xpath="Number"/>
<xs:field xpath="."/>
</xs:unique>
</xs:element>
Hope that helps,
Priscilla
-----------------------------------------------------
Priscilla Walmsley
Author, Definitive XML Schema (Prentice Hall PTR)
http://www.datypic.com
-----------------------------------------------------
*** Sent via Devdex
http://www.devdex.com ***
Don't just participate in USENET...get rewarded for it!