You are viewing a plain text version of this content. The canonical link for it is here.
Posted to j-dev@xerces.apache.org by "Reddy, Nagesh" <Na...@bmc.com> on 2001/01/08 23:19:19 UTC

Validation Errors

Hi,

When i am trying to parse a xsd file i am getting the following errors when
i am turning the validations  true. If i parse the same xsd file turning
validations to false then there are no errors. I would like to know the
reason behind it. I hope i need to load the schema (xsd or dtd where this
elements are defined).

Can anyone help me out. Are the necessary dtd or xsd files downloadable free
or do  we need to become W3C member to access or download  these files.

parser.setFeature( "http://xml.org/sax/features/validation", true )

[Error] JARTA_TEST20.xsd:4:50: Element type "schema" must be declared.
[Error] JARTA_TEST20.xsd:5:14: Element type "annotation" must be declared.
[Error] JARTA_TEST20.xsd:6:18: Element type "documentation" must be
declared.
[Error] JARTA_TEST20.xsd:11:35: Element type "element" must be declared.
[Error] JARTA_TEST20.xsd:12:38: Element type "complexType" must be declared.
[Error] JARTA_TEST20.xsd:13:85: Element type "element" must be declared.
[Error] JARTA_TEST20.xsd:16:28: Element type "complexType" must be declared.
[Error] JARTA_TEST20.xsd:140:26: Element type "maxLength" must be declared.
[Error] JARTA_TEST20.xsd:142:48: Element type "simpleType" must be declared.
[Error] JARTA_TEST20.xsd:143:25: Element type "minLength" must be declared.

Thanks
Nagesh Reddy