September 2002
Intermediate to advanced
1008 pages
22h 3m
English
An XML schema generally validates the structure of an XML instance in terms of element nesting and attributes. The XML schema also validates content primarily in the form of simple types. Identity constraints provide an additional mechanism to validate contents. The three types of elements for creating identity constraints are unique, key, and keyref.
A unique element specifies that repeated elements are unique given the values of one or a combination of keys. For example, Listing 6.8 demonstrates that a partNumber can appear only once with a particular value in the entire completePartList.
<xsd:element name="completePartList"> <xsd:complexType> <xsd:sequence> ... |
Read now
Unlock full access