Restrictions in the current implementation ========================================== Order of items in the schema document: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 1. All elements must be defined before they are referenced in a complexType definition using "ref=...". 2. All element groups and attribute groups must be defined before they are referenced in a complex or simple type definition using " but the following will cause a parsing error to be generated: *** Please note that the schema definition does not need to have this restriction, and either notation can be used as appropriate. 2. As also mentioned elsewhere in this document, in an XML instance document: * the "xsi:null" attribute, whenever present, must be the **first** attribute for the element; and * the "xsi:type" attribute, whenever present, must be the **last** attribute for the element.