If you used XML Spy 3.5 or earlier to write your schema make sure that it
uses the may 2001 recommendation:
<xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema" >
and not
<xsd:schema xmlns:xsd="http://www.w3.org/2000/10/XMLSchema" > which is the
default. That should solve your problem.
cheers,
Arup Barat
-----Original Message-----
From: Willy Ching [mailto:[EMAIL PROTECTED]]
Sent: Monday, June 18, 2001 5:23 AM
To: [EMAIL PROTECTED]
Subject: Validation against Schema
Hello all,
I just like my xml file to be validated against the schema, I create
the schema
using XML Spy, so I use the ff code:
parser.setFeature( "http://xml.org/sax/features/validation",true);
parser.setFeature( "http://xml.org/sax/features/namespaces",true );
parser.setFeature(
"http://apache.org/xml/features/validation/schema",true);
but my error handler returns :Error] processed.xml:64:11: Element type
"B0022"
must be declared
I'm using xerces 1.4. I try to use Samples/SAX2Count.java but the same
error
occur.
Can somebody help me? Thanks!
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]