Share via


Content Models

 

A content model is the formal description of the structure and allowable content of an element that is used to validate an XML document. Schema content models offer more control on element occurrences than DTD content models. In addition, schema content models allow the validation of mixed content.

A content model can restrict a document to a certain set of element types and attributes, describe and constrain the relationships between these different components, and uniquely identify specific elements. Sharing a content model allows businesses to exchange structured information.

This section includes the following topics.