Hi Neil, Thanks for the mail. Someone had the same problem today and I took the answer which was following. I didn't know about the 2000/1999 Namespaces before, but that was the solution..
Hinrich [EMAIL PROTECTED] wrote: > > Hi Hinrich, > > Which version of Xerces are you using? There were considerable changes to > schema syntax that Xerces supported between 1.2.3 and 1.3.0, so you've got > to make sure the schema you're trying to validate is meant to be validated > against the version of Xerces you have. The schema you posted had a 1999 > namespace, so would not work with Xerces 1.3.0 > > Cheers, > Neil > > Neil Graham > XML Parser Development > IBM Toronto Lab > Phone: 416-448-3519, T/L 778-3519 > E-mail: [EMAIL PROTECTED] > > Hinrich Boog <[EMAIL PROTECTED]> on 02/22/2001 05:43:53 AM > > Please respond to [EMAIL PROTECTED] > > To: Xerces J User <[EMAIL PROTECTED]> > cc: > Subject: 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(See attached file: Validator.java)<?xml version="1.0" > encoding="UTF-8"?> > > <temp xmlns:xsi="http://www.w3.org/1999/XMLSchema-instance" > xsi:noNamespaceSchemaLocation="temp.xsd"> > > <three>3</three> > > <six>6</six> > > <four>4</four> > > <five>5</five> > > <two>2</two> > > <one>1</one> > > <seven>7</seven> > > </temp> > > (See attached file: temp.xsd) > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > ------------------------------------------------------------------------ > Name: Validator.java > Validator.java Type: application/x-unknown-content-type-java_auto_file > Encoding: base64 > > Name: temp.xsd > temp.xsd Type: application/x-unknown-content-type-xsd_auto_file > Encoding: base64 > > ------------------------------------------------------------------------ > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] -- Hinrich Boog, [EMAIL PROTECTED] Infopark AG Kitzingstr. 15, D-12277 Berlin, Germany Tel +49(0)-30-747.993.0, Fax +49(0)-30-747.993.93 http://www.infopark.de/
