Hi Willy,

If you set everything correctly, and the parser still gives you some
errors, then 99% there is an error in your xml file. :-)

It would definitely help if you could post your xml & xsd files, and it's
more reasonable to send such kind of questions to the user list
([EMAIL PROTECTED]).

Cheers,
Sandy Gao
Software Developer, IBM Canada
(1-416) 448-3255
[EMAIL PROTECTED]



                                                                                       
                            
                    Willy Ching                                                        
                            
                    <willy@itistec       To:     [EMAIL PROTECTED]           
                            
                    h.com>               cc:                                           
                            
                                         Subject:     Validation against Schema        
                            
                    06/18/2001                                                         
                            
                    05:23 AM                                                           
                            
                    Please respond                                                     
                            
                    to                                                                 
                            
                    xerces-j-dev                                                       
                            
                                                                                       
                            
                                                                                       
                            




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]

Reply via email to