Hi, 
the Xerces 2.6.2 (latest CVS version) indeed recognizes all schema-mistakes. It works 
only, if I has both: schema-file and XML-instance. 
Are there a way to check only the schema? In some situations XML-Instance doesn't have 
all elementes, that are defined in the schema. 
For these elements the check fails. I tryed with class: SchemaLoader and setting the 
feature: "...full-schema-checking" to true. But 
the SchemaLoader does not recognize my schema-mistakes. Should i write better 
Java-code, or SchemaLoader is not prepared to 
check the schema? 
here the example: 
<xs:complexType name="basis_test_typ">
      <xs:attribute name="V"/>
</xs:complexType>

and my derived type:
<xs:complexType name="derived_test_typ">
     <xs:complexContent>
         <xs:restriction base="basis_test_typ">
             <xs:sequence>
                 <xs:element name="not_allowed_element"/>
             </xs:sequence>
         </xs:restriction>
     </xs:complexContent>
</xs:complexType>
"not_allowed_element" is here wrong, and the SchemaLoader should report an error. 

Thanks in advance 
Evgeny 



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to