I'm writing a xml schema against to a xml file. I got this error for the following code but cannot figure out why. any suggestion?
cvc-type.3.1.1: Element 'employees' is a simple type, so it cannot have attributes, excepting those whose namespace name is identical to 'http://www.w3.org/2001/XMLSchema-instance' and whose [local name] is one of 'type', 'nil', 'schemaLocation' or 'noNamespaceSchemaLocation'. However, the attribute, 'essns' was found. A problem was found starting at: simpleType.
<xs:element name="employees" >
<xs:simpleType>
<xs:list itemType ="xs:integer"/>
</xs:simpleType>
</xs:element>
<xs:element name= "projectsControlled">
<xs:simpleType>
<xs:list itemType ="xs:integer" />
</xs:simpleType>
</xs:element>
This following is xml code
<employees essns="888665555"/>
<projectsControlled pnos="20"/>
employees
cannot have anessns
attribute because the schema doesn't allow it to. – Jim Garrison