O'Reilly logo

Definitive XML Schema by Priscilla Walmsley

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

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 ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required