Chapter 5 Instances and schemas

There is a many-to-many relationship between instances and schemas. A schema can describe many valid instances, possibly with different root element types. Likewise, an instance may be described by many schemas, depending on the circumstances. For example, you may have multiple schemas for an instance, with different levels of validation. One may just validate the structure, while another checks every data item against a data type. There may also be multiple schemas with different application information to be used at processing time. This chapter explains the interaction between schemas and instances.

5.1 Using the instance attributes

There are four attributes that can apply to ...

Get Definitive XML Schema now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.