xsi:nil="true" and xsi:type="xsd:string"

Hi,

Can someone shed some light on why elemZ001.xml is invalid?
(see http://www.w3.org/XML/2001/05/xmlschema-test-collection/result-ms-element.htm)

Thx,

-Stanley

elemZ001.xsd
----------------
<?xml version="1.0"?>
<xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema">
 <xsd:element name="root">
  <xsd:complexType>
   <xsd:sequence>
    <xsd:element ref="uid" maxOccurs="unbounded"/>
   </xsd:sequence>
  </xsd:complexType>
 </xsd:element>
 <xsd:element name="uid" nillable="true"/>
</xsd:schema>


elemZ001.xml
----------------
<?xml version="1.0"?>
<root xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xsi:noNamespaceSchemaLocation="elemZ001.xsd">
 <uid xsi:nil="true" xsi:type="xsd:string"/>
 <uid xsi:nil="true"/>
</root>

Received on Thursday, 28 February 2002 18:22:55 UTC