You are viewing a plain text version of this content. The canonical link for it is here.
Posted to j-users@xerces.apache.org by Hinrich Boog <hi...@infopark.de> on 2001/02/22 11:43:53 UTC

Prolems with validating

Hi guys,

I have a problem concerning the valitation with XML Schema. I used
several example files for validation, here is a Java-Class, a schema
file and an XML file that I got from the newsgroup archive.

It seems like the program is validating, but for whatever example I use,
I get an error for each element. I suppose something's wrong, but I
haven't got a clue.

Thanks for Help.

Hinrich

The error Messages when calling "java Validator temp.xml":

:java/xerces_examples > java Validator temp.xml
[error] file:///Users/hinrich/lang/java/xerces_examples/temp.xml 2:102
Element type "temp" must be declared.
[error] file:///Users/hinrich/lang/java/xerces_examples/temp.xml 3:9
Element type "three" must be declared.
[error] file:///Users/hinrich/lang/java/xerces_examples/temp.xml 4:7
Element type "six" must be declared.
[error] file:///Users/hinrich/lang/java/xerces_examples/temp.xml 5:8
Element type "four" must be declared.
[error] file:///Users/hinrich/lang/java/xerces_examples/temp.xml 6:8
Element type "five" must be declared.
[error] file:///Users/hinrich/lang/java/xerces_examples/temp.xml 7:7
Element type "two" must be declared.
[error] file:///Users/hinrich/lang/java/xerces_examples/temp.xml 8:7
Element type "one" must be declared.
[error] file:///Users/hinrich/lang/java/xerces_examples/temp.xml 9:9
Element type "seven" must be declared.
warnings:    0
errors:      8
fatalErrors: 0
document is invalid