XML technologies / XML Schema / References to schemas and schema data types in XML documents

(Excerpt from “XML Schema” by Eric van der Vlist)

So far, we have seen how to write W3C XML schemas outside XML documents without touching the actual instance documents. This chapter introduces a new namespace used within XML documents to provide information for schema processors. It can specify the locations of associated schemas and the schema types used. This opens a new level of flexibility and interaction between schemas and instance documents when designing XML applications.

This namespace, identical for all metadata concerning W3C XML Schema within instance documents themselves, is called "http://www.w3.org/2001/XMLSchema-instance". The prefix normally used to denote it is xsi. This namespace uses only four attributes, considered valid on any element of any instance document without being declared in the schema.

   

   

 

 

 

back to top