tsd:content

Purpose

This element specifies whether validation of instances of the corresponding doctype uses closed content mode or open content mode. Its use is optional.

The default is closed content mode.

Note:
The tsd:content element can be applied both in the case of tsd:logical as a child of tsd:doctype and in the case of tsd:logical as a child of tsd:shadowXML.

Parent element tsd:logical
Child elements None
Attributes None
Type xs:NMTOKEN
Restrictions

Only the following values are allowed:

  • "closed"
    Apply closed content validation mode, i.e. adhere strictly to the validation rules as defined in the XML Schema recommendation.

  • "open"
    Apply open content validation mode, i.e. allow for arbitrary additional elements and attributes in the content model of any element defined in this doctype. For details, refer to Open Content vs. Closed Content Validation.

Example

This example shows how to specify that validation is checked for XML data stored using the schema. See also tsd:logical:

<tsd:schemaInfo name = "Telephone">
  <tsd:collection name = "CustomerData"></tsd:collection>
  <tsd:doctype name = "Telephone">
    <tsd:logical>
     <tsd:content>closed</tsd:content>
    </tsd:logical>
    <tsd:physical>
    .
    .
    .
    </tsd:physical>
  </tsd:doctype>
</tsd:schemaInfo>