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 Willy Ching <wi...@itistech.com> on 2001/06/18 11:23:08 UTC

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: xerces-j-dev-unsubscribe@xml.apache.org
For additional commands, e-mail: xerces-j-dev-help@xml.apache.org