posted 14 years ago
<Address>
<country>India</country>
</Address>
<Address>
<country>India</country>
</Address>
I need to create an XML with following restriction .It can have multiple address elements; inside each address there will be a element country
The country name under each Address block should be unique. it should not get repeated i.e No two address Block can have same country field
I used <xs:unique name="Country_name">
<xs:selector xpath="Address /country">
<xs:field xpath="." />
</xs:unique>
but it will impose restriction only on a Address block and not in two different address blocks
A table, a chair, a bowl of fruit and a violin; what else does a man need to be happy?:Einstein